[17-Dec-2025 07:20:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:20:17 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:20:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:20:17 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:20:18 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:20:18 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:20:18 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:20:18 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:20:18 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:20:18 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:20:18 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:20:18 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:20:18 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:20:18 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:20:18 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:20:18 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:20:18 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:20:18 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:20:18 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:20:18 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:20:18 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:20:18 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:20:18 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:20:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:20:18 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:25:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:25:10 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:25:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:25:10 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:25:10 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:25:10 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:25:10 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:25:10 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:25:10 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:25:10 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:25:10 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:25:10 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:25:10 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:25:10 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:25:10 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:25:10 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:25:10 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:25:10 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:25:10 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:25:10 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:25:11 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:25:11 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:25:11 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:25:11 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:27:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:27:01 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:27:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:27:01 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:27:01 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:27:01 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:27:01 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:27:01 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:27:01 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:27:01 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:27:01 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:27:01 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:27:01 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:27:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:27:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:27:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:27:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:27:01 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:27:01 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:27:01 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:27:01 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:27:01 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:27:01 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:27:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:27:02 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:32:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:32:29 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:32:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:32:29 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:32:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:32:29 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:32:29 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:32:29 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:32:29 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:32:29 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:32:29 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:32:29 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:32:29 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:32:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:32:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:32:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:32:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:32:29 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:32:29 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:32:29 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:32:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:32:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:32:29 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:32:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:32:29 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:35:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:35:01 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:35:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:35:01 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:35:01 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:35:01 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:35:01 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:35:01 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:35:01 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:35:01 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:35:01 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:35:01 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:35:01 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:35:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:35:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:35:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:35:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:35:01 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:35:01 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:35:01 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:35:01 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:35:01 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:35:01 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:35:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:35:01 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:39:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:39:15 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:39:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:39:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:39:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:39:16 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:39:16 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:39:16 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:39:16 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:39:16 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:39:16 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:39:16 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:39:16 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:39:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:39:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:39:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:39:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:39:16 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:39:16 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:39:16 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:39:17 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:39:17 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:39:17 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:39:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:39:19 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:41:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:41:30 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:41:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:41:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:41:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:41:30 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:41:30 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:41:30 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:41:30 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:41:30 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:41:30 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:41:30 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:41:30 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:41:30 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:41:30 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:41:30 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:41:30 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:41:30 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:41:30 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:41:30 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:41:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:41:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:41:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:41:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:41:30 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:46:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:46:40 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:46:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:46:40 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:46:40 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:46:40 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:46:40 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:46:40 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:46:40 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:46:40 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:46:40 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:46:40 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:46:40 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:46:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:46:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:46:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:46:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:46:40 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:46:40 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:46:40 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:46:40 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:46:40 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:46:40 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:46:41 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:48:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:48:32 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:48:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:48:33 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:48:33 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:48:33 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:48:33 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:48:33 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:48:33 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:48:33 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:48:33 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:48:33 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:48:33 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:48:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:48:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:48:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:48:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:48:33 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:48:33 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:48:33 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:48:33 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:48:33 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:48:33 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:48:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:48:33 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:50:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:50:40 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:50:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:50:40 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:50:40 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:50:40 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:50:40 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:50:40 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:50:40 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:50:40 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:50:40 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:50:40 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:50:40 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:50:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:50:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:50:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:50:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:50:41 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:50:41 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:50:41 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:50:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:50:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:50:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:50:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:50:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:50:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:50:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:50:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:50:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:50:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:50:42 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:51:44 Europe/Berlin] SESSION DEBUG - All session data: Array
(
)

[17-Dec-2025 07:51:44 Europe/Berlin] SESSION DEBUG - student_id exists: NO
[17-Dec-2025 07:51:44 Europe/Berlin] SESSION DEBUG - student_id value: NOT SET
[17-Dec-2025 07:52:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:52:25 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:52:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:52:25 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:52:25 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:52:25 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:52:25 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:52:25 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:52:25 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:52:25 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:52:25 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:52:25 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:52:25 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:52:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:52:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:52:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:52:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:52:25 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:52:25 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:52:25 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:52:25 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:52:25 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:52:25 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:52:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:52:25 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:55:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:55:14 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:55:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:55:14 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:55:14 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:55:14 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:55:14 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:55:14 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:55:14 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:55:14 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:55:14 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:55:14 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:55:14 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:55:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:55:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:55:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:55:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:55:14 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:55:14 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:55:14 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:55:14 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:55:14 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:55:14 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:55:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:55:14 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 07:56:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:56:07 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:56:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:56:07 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:56:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:56:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 07:56:53 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 07:56:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 07:56:53 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 07:56:53 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 07:56:53 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 07:56:53 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 07:56:53 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 07:56:53 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 07:56:53 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 07:56:53 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 07:56:53 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 07:56:53 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 07:56:53 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:56:53 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 07:56:53 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 07:56:53 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 07:56:53 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 07:56:53 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 07:56:53 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 07:56:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 07:56:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 07:56:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 07:56:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 07:56:54 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:00:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:00:35 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:00:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:00:35 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:00:35 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:00:35 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:00:35 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:00:35 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:00:35 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:00:35 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:00:35 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:00:35 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:00:35 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:00:35 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:00:35 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:00:35 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:00:35 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:00:35 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:00:35 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:00:35 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:00:35 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:00:35 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:00:35 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:00:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:00:36 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:02:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:02:04 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:02:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:02:04 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:02:04 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:02:04 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:02:04 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:02:04 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:02:04 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:02:04 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:02:04 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:02:04 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:02:04 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:02:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:02:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:02:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:02:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:02:04 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:02:04 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:02:04 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:02:04 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:02:04 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:02:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:02:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:02:04 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:04:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:04:20 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:04:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:04:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:04:20 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:04:20 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:04:20 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:04:20 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:04:20 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:04:20 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:04:20 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:04:20 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:04:20 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:04:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:04:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:04:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:04:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:04:20 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:04:20 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:04:20 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:04:20 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:04:20 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:04:20 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:04:20 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:09:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:09:05 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:09:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:09:07 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:09:07 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:09:07 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:09:07 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:09:07 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:09:07 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:09:07 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:09:07 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:09:07 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:09:07 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:09:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:09:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:09:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:09:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:09:07 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:09:07 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:09:07 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:09:09 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:09:09 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:09:09 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:09:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:09:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:09:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:09:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:09:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:09:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:09:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:09:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:09:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:09:11 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:10:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:10:10 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:10:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:10:10 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:10:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:11:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:11:22 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:11:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:11:22 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:11:22 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:11:22 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:11:22 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:11:22 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:11:22 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:11:22 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:11:22 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:11:22 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:11:22 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:11:22 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:11:22 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:11:22 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:11:22 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:11:22 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:11:22 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:11:22 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:11:22 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:11:22 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:11:22 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:11:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:11:23 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:13:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:13:12 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:13:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:13:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:13:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:13:12 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:13:12 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:13:12 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:13:12 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:13:12 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:13:12 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:13:12 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:13:12 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:13:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:13:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:13:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:13:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:13:12 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:13:12 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:13:12 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:13:13 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:13:13 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:13:13 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:13:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:13:13 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:14:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:14:56 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:14:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:14:56 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:14:56 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:14:56 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:14:56 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:14:56 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:14:56 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:14:56 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:14:56 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:14:56 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:14:56 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:14:56 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:14:56 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:14:56 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:14:56 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:14:56 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:14:56 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:14:56 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:14:56 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:14:56 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:14:56 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:14:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:14:57 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:16:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:16:28 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:16:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:16:28 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:16:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:16:29 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:16:29 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:16:29 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:16:29 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:16:29 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:16:29 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:16:29 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:16:29 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:16:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:16:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:16:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:16:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:16:29 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:16:29 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:16:29 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:16:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:16:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:16:29 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:16:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:16:29 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:18:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:18:37 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:18:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:18:37 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:18:37 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:18:37 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:18:37 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:18:37 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:18:37 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:18:37 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:18:37 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:18:37 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:18:37 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:18:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:18:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:18:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:18:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:18:37 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:18:37 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:18:37 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:18:37 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:18:37 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:18:37 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:18:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:18:37 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:22:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:22:41 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:22:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:22:41 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:22:41 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:22:41 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:22:41 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:22:41 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:22:41 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:22:41 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:22:41 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:22:41 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:22:41 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:22:41 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:22:41 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:22:41 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:22:41 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:22:41 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:22:41 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:22:41 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:22:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:22:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:22:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:22:41 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:24:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:24:51 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:24:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:24:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:24:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:24:51 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:24:51 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:24:51 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:24:51 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:24:51 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:24:51 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:24:51 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:24:51 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:24:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:24:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:24:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:24:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:24:51 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:24:51 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:24:51 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:24:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:24:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:24:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:24:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:24:51 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:26:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:26:27 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:26:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:26:27 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:26:27 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:26:27 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:26:27 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:26:27 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:26:27 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:26:27 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:26:27 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:26:27 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:26:27 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:26:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:26:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:26:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:26:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:26:27 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:26:27 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:26:27 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:26:27 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:26:27 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:26:27 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:26:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:26:27 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:27:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:27:25 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:27:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:27:25 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:27:25 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:27:25 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:27:25 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:27:25 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:27:25 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:27:25 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:27:25 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:27:25 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:27:25 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:27:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:27:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:27:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:27:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:27:25 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:27:25 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:27:25 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:27:25 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:27:25 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:27:25 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:27:25 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:30:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:30:03 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:30:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:30:03 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:30:03 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:30:03 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:30:03 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:30:03 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:30:03 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:30:03 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:30:03 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:30:03 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:30:03 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:30:03 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:30:03 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:30:03 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:30:03 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:30:03 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:30:03 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:30:03 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:30:03 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:30:03 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:30:03 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:30:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:30:03 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:32:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:32:00 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:32:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:32:00 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:32:00 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:32:00 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:32:00 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:32:00 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:32:00 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:32:00 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:32:00 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:32:00 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:32:00 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:32:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:32:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:32:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:32:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:32:00 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:32:00 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:32:00 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:32:00 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:32:00 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:32:00 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:32:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:32:00 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:32:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:34:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:34:00 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:34:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:34:00 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:34:00 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:34:00 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:34:00 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:34:00 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:34:00 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:34:00 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:34:00 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:34:00 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:34:00 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:34:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:34:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:34:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:34:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:34:00 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:34:00 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:34:00 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:34:00 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:34:00 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:34:00 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:34:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:34:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:34:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:34:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:34:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:34:01 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:37:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:37:31 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:37:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:37:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:37:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:37:31 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:37:31 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:37:31 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:37:31 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:37:31 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:37:31 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:37:31 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:37:31 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:37:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:37:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:37:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:37:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:37:31 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:37:31 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:37:31 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:37:32 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:37:32 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:37:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:37:32 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:38:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:39:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:39:44 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:39:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:39:44 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:39:44 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:39:44 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:39:44 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:39:44 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:39:44 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:39:44 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:39:44 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:39:44 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:39:44 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:39:44 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:39:44 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:39:44 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:39:44 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:39:44 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:39:44 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:39:44 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:39:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:39:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:39:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:39:44 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:41:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:41:06 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:41:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:41:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:41:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:41:06 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:41:06 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:41:06 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:41:06 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:41:06 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:41:06 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:41:06 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:41:06 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:41:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:41:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:41:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:41:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:41:06 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:41:06 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:41:06 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:41:06 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:41:06 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:41:06 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:41:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:41:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:41:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:41:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:41:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:41:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:41:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:41:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:41:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:41:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:41:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:41:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:41:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:41:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:41:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:41:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:41:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:41:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:41:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:41:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:41:07 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:41:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:42:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:42:47 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:42:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:42:47 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:42:47 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:42:47 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:42:47 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:42:47 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:42:47 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:42:47 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:42:47 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:42:47 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:42:47 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:42:47 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:42:47 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:42:47 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:42:47 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:42:47 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:42:47 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:42:47 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:42:47 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:42:47 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:42:47 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:42:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:42:47 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:46:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:46:14 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:46:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:46:14 Europe/Berlin] Email logged successfully: swususan0@gmail.com - ⏰ Study Reminder: Time for Assignment Due - Accounting - failed
[17-Dec-2025 08:46:15 Europe/Berlin] Email logged successfully: swususan0@gmail.com - ⏰ Study Reminder: Time for Assignment Due - Accounting - sent
[17-Dec-2025 08:46:15 Europe/Berlin] Email logged successfully: swususan0@gmail.com - ⏰ Study Reminder: Time for Assignment Due - Accounting - sent
[17-Dec-2025 08:46:15 Europe/Berlin] Automatic reminder email sent successfully to user 45 for reminder 15
[17-Dec-2025 08:46:15 Europe/Berlin] Automatic reminder system processed 1 reminders successfully
[17-Dec-2025 08:46:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:46:15 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:46:15 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:46:15 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:46:15 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:46:15 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:46:15 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:46:15 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:46:15 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:46:15 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:46:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:46:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:46:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:46:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:46:15 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:46:15 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:46:15 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:46:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:46:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:46:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:46:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:46:16 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:47:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:55:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:55:03 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:55:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:55:04 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:55:04 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:55:04 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:55:04 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:55:04 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:55:04 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:55:04 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:55:04 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:55:04 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:55:04 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:55:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:55:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:55:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:55:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:55:04 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:55:04 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:55:04 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:55:04 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:55:04 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:55:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:55:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:55:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:55:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:55:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:55:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:55:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:55:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:55:05 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 08:56:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:57:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 08:57:23 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 08:57:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 08:57:23 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 08:57:23 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 08:57:23 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 08:57:23 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 08:57:23 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 08:57:23 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 08:57:23 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 08:57:23 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 08:57:23 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 08:57:23 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 08:57:23 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:57:23 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 08:57:23 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 08:57:23 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 08:57:23 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 08:57:23 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 08:57:23 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 08:57:23 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 08:57:23 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 08:57:23 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 08:57:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 08:57:23 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:02:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:02:21 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:02:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:02:21 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:02:21 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:02:21 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:02:21 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:02:21 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:02:21 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:02:21 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:02:21 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:02:21 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:02:21 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:02:21 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:02:21 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:02:21 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:02:21 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:02:21 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:02:21 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:02:21 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:02:22 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:02:22 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:02:22 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:02:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:02:22 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:03:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:06:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:06:27 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:06:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:06:27 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:06:27 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:06:27 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:06:27 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:06:27 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:06:27 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:06:27 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:06:27 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:06:27 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:06:27 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:06:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:06:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:06:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:06:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:06:27 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:06:27 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:06:27 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:06:27 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:06:27 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:06:27 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:06:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:06:27 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:06:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Debug script started
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: User ID from session - 45
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Input data - {"video_id":"41","course_id":"17","auto_complete":0,"POST_data":{"video_id":"41","course_id":"17","auto_complete":"0"}}
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Starting database operations
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Testing PDO connection - {"pdo_defined":true,"pdo_type":"PDO"}
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Checking enrollment
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Enrollment check result - 1
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Checking video belongs to course
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Video check result - {"video_id":41,"title":"welcome"}
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Checking database tables
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Available tables - ["accreditation_audit_log","accreditation_certificates","accreditation_documents","accreditation_notifications","accreditation_requests","accredited_certificates","admin_earnings","admin_library_logs","admin_profiles","assignment_submissions","assignment_submissions_backup_2025_10_28_15_06","assignment_submissions_backup_2025_10_28_15_09","assignment_submissions_backup_2025_10_28_16_51_14","assignments","backup_history","backup_settings","calendar_events","categories","certificate_settings","certificate_template_fields","certificate_templates","certificates","cms_activity_log","cms_admins","cms_content","cms_images","comments","course_materials","course_purchases","course_review_stats","course_reviews","course_sections","course_videos","courses","download_categories","download_history","downloads","email_drafts","email_logs","email_processing_log","email_queue","email_templates","email_verifications","enrollments","forum_replies","forum_topics","forums","identity_verification_logs","library_categories","library_resource_categories","library_resources","library_submissions","material_views","messages","notifications","partnerships","payfast_settings","payments","public_library_resources","question_options","quiz_answers","quiz_attempts","quiz_question_options","quiz_questions","quiz_responses","quiz_results","quiz_submissions","quizzes","ratings","referral_analytics","referral_settings","referrals","reminder_emails","reminder_log","reminder_logs","reminder_system_config","revenue_settings","review_likes","review_replies","secure_referral_codes","settings","sita_assessment_answers","sita_assessment_attempts","sita_assessment_audit_log","sita_assessment_files","sita_assessment_options","sita_assessment_questions","sita_assessments","sita_file_format_presets","sita_question_templates","student_certificates","student_enrollments","student_profiles","student_progress","student_referral_discounts","students","study_reminders","system_settings","teacher_earnings","teacher_profiles","teacher_referral_commissions","teacher_settings","teacher_student_assignments","teachers","user_downloads","user_video_completions","users","video_notes","video_progress","video_purchases","video_views","videos","withdrawal_requests"]
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Checking enrollments table structure
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Enrollments table structure - [{"Field":"enrollment_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"student_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"purchase_id","Type":"int","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"enrolled_date","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"progress","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""}]
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Checking videos table structure
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Videos table structure - [{"Field":"video_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"teacher_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"title","Type":"varchar(255)","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"description","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_url","Type":"varchar(500)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_type","Type":"enum('file','url')","Null":"YES","Key":"MUL","Default":"file","Extra":""},{"Field":"external_url","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"platform","Type":"varchar(50)","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"embed_code","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_id_external","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"thumbnail","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"duration","Type":"varchar(10)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"views","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"likes","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"category_name","Type":"varchar(100)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"is_free","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"is_published","Type":"tinyint(1)","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"created_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"},{"Field":"has_assignment","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"has_quiz","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"video_order","Type":"int","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"prerequisite_video_id","Type":"int","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"linked_content_types","Type":"json","Null":"YES","Key":"","Default":null,"Extra":""}]
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Creating/checking user_video_completions table
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Table creation result - 0
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Checking user_video_completions table structure
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: User_video_completions table structure - [{"Field":"id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"video_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"completion_percentage","Type":"decimal(5,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"watch_time","Type":"decimal(8,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"completed_at","Type":"timestamp","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"}]
[17-Dec-2025 09:06:56 Europe/Berlin] 🐛 DEBUG: Captured output - "<!-- \ud83d\udc1b DEBUG: Debug script started -->\n<!-- \ud83d\udc1b DEBUG: User ID from session - 45 -->\n<!-- \ud83d\udc1b DEBUG: Input data - {\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":0,\"POST_data\":{\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":\"0\"}} -->\n<!-- \ud83d\udc1b DEBUG: Starting database operations -->\n<!-- \ud83d\udc1b DEBUG: Testing PDO connection - {\"pdo_defined\":true,\"pdo_type\":\"PDO\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollment -->\n<!-- \ud83d\udc1b DEBUG: Enrollment check result - 1 -->\n<!-- \ud83d\udc1b DEBUG: Checking video belongs to course -->\n<!-- \ud83d\udc1b DEBUG: Video check result - {\"video_id\":41,\"title\":\"welcome\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking database tables -->\n<!-- \ud83d\udc1b DEBUG: Available tables - [\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"] -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollments table structure -->\n<!-- \ud83d\udc1b DEBUG: Enrollments table structure - [{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Checking videos table structure -->\n<!-- \ud83d\udc1b DEBUG: Videos table structure - [{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Creating\/checking user_video_completions table -->\n<!-- \ud83d\udc1b DEBUG: Table creation result - 0 -->\n<!-- \ud83d\udc1b DEBUG: Checking user_video_completions table structure -->\n<!-- \ud83d\udc1b DEBUG: User_video_completions table structure - [{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}] -->\n{\"success\":true,\"message\":\"Debug completed successfully\",\"debug_data\":{\"user_id\":45,\"video_id\":\"41\",\"course_id\":\"17\",\"enrollment_count\":1,\"video_found\":{\"video_id\":41,\"title\":\"welcome\"},\"tables\":[\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"],\"enrollments_structure\":[{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}],\"videos_structure\":[{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}],\"completions_structure\":[{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}]}}"
[17-Dec-2025 09:07:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:07:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Debug script started
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: User ID from session - 45
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Input data - {"video_id":"41","course_id":"17","auto_complete":0,"POST_data":{"video_id":"41","course_id":"17","auto_complete":"0"}}
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Starting database operations
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Testing PDO connection - {"pdo_defined":true,"pdo_type":"PDO"}
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Checking enrollment
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Enrollment check result - 1
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Checking video belongs to course
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Video check result - {"video_id":41,"title":"welcome"}
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Checking database tables
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Available tables - ["accreditation_audit_log","accreditation_certificates","accreditation_documents","accreditation_notifications","accreditation_requests","accredited_certificates","admin_earnings","admin_library_logs","admin_profiles","assignment_submissions","assignment_submissions_backup_2025_10_28_15_06","assignment_submissions_backup_2025_10_28_15_09","assignment_submissions_backup_2025_10_28_16_51_14","assignments","backup_history","backup_settings","calendar_events","categories","certificate_settings","certificate_template_fields","certificate_templates","certificates","cms_activity_log","cms_admins","cms_content","cms_images","comments","course_materials","course_purchases","course_review_stats","course_reviews","course_sections","course_videos","courses","download_categories","download_history","downloads","email_drafts","email_logs","email_processing_log","email_queue","email_templates","email_verifications","enrollments","forum_replies","forum_topics","forums","identity_verification_logs","library_categories","library_resource_categories","library_resources","library_submissions","material_views","messages","notifications","partnerships","payfast_settings","payments","public_library_resources","question_options","quiz_answers","quiz_attempts","quiz_question_options","quiz_questions","quiz_responses","quiz_results","quiz_submissions","quizzes","ratings","referral_analytics","referral_settings","referrals","reminder_emails","reminder_log","reminder_logs","reminder_system_config","revenue_settings","review_likes","review_replies","secure_referral_codes","settings","sita_assessment_answers","sita_assessment_attempts","sita_assessment_audit_log","sita_assessment_files","sita_assessment_options","sita_assessment_questions","sita_assessments","sita_file_format_presets","sita_question_templates","student_certificates","student_enrollments","student_profiles","student_progress","student_referral_discounts","students","study_reminders","system_settings","teacher_earnings","teacher_profiles","teacher_referral_commissions","teacher_settings","teacher_student_assignments","teachers","user_downloads","user_video_completions","users","video_notes","video_progress","video_purchases","video_views","videos","withdrawal_requests"]
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Checking enrollments table structure
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Enrollments table structure - [{"Field":"enrollment_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"student_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"purchase_id","Type":"int","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"enrolled_date","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"progress","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""}]
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Checking videos table structure
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Videos table structure - [{"Field":"video_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"teacher_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"title","Type":"varchar(255)","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"description","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_url","Type":"varchar(500)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_type","Type":"enum('file','url')","Null":"YES","Key":"MUL","Default":"file","Extra":""},{"Field":"external_url","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"platform","Type":"varchar(50)","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"embed_code","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_id_external","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"thumbnail","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"duration","Type":"varchar(10)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"views","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"likes","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"category_name","Type":"varchar(100)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"is_free","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"is_published","Type":"tinyint(1)","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"created_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"},{"Field":"has_assignment","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"has_quiz","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"video_order","Type":"int","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"prerequisite_video_id","Type":"int","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"linked_content_types","Type":"json","Null":"YES","Key":"","Default":null,"Extra":""}]
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Creating/checking user_video_completions table
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Table creation result - 0
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Checking user_video_completions table structure
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: User_video_completions table structure - [{"Field":"id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"video_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"completion_percentage","Type":"decimal(5,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"watch_time","Type":"decimal(8,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"completed_at","Type":"timestamp","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"}]
[17-Dec-2025 09:07:34 Europe/Berlin] 🐛 DEBUG: Captured output - "<!-- \ud83d\udc1b DEBUG: Debug script started -->\n<!-- \ud83d\udc1b DEBUG: User ID from session - 45 -->\n<!-- \ud83d\udc1b DEBUG: Input data - {\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":0,\"POST_data\":{\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":\"0\"}} -->\n<!-- \ud83d\udc1b DEBUG: Starting database operations -->\n<!-- \ud83d\udc1b DEBUG: Testing PDO connection - {\"pdo_defined\":true,\"pdo_type\":\"PDO\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollment -->\n<!-- \ud83d\udc1b DEBUG: Enrollment check result - 1 -->\n<!-- \ud83d\udc1b DEBUG: Checking video belongs to course -->\n<!-- \ud83d\udc1b DEBUG: Video check result - {\"video_id\":41,\"title\":\"welcome\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking database tables -->\n<!-- \ud83d\udc1b DEBUG: Available tables - [\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"] -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollments table structure -->\n<!-- \ud83d\udc1b DEBUG: Enrollments table structure - [{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Checking videos table structure -->\n<!-- \ud83d\udc1b DEBUG: Videos table structure - [{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Creating\/checking user_video_completions table -->\n<!-- \ud83d\udc1b DEBUG: Table creation result - 0 -->\n<!-- \ud83d\udc1b DEBUG: Checking user_video_completions table structure -->\n<!-- \ud83d\udc1b DEBUG: User_video_completions table structure - [{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}] -->\n{\"success\":true,\"message\":\"Debug completed successfully\",\"debug_data\":{\"user_id\":45,\"video_id\":\"41\",\"course_id\":\"17\",\"enrollment_count\":1,\"video_found\":{\"video_id\":41,\"title\":\"welcome\"},\"tables\":[\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"],\"enrollments_structure\":[{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}],\"videos_structure\":[{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}],\"completions_structure\":[{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}]}}"
[17-Dec-2025 09:08:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:10:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:10:43 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:10:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:10:43 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:10:43 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:10:43 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:10:43 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:10:43 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:10:43 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:10:43 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:10:43 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:10:43 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:10:43 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:10:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:10:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:10:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:10:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:10:43 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:10:43 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:10:43 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:10:43 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:10:43 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:10:43 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:10:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:10:43 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:10:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:11:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Debug script started
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: User ID from session - 45
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Input data - {"video_id":"41","course_id":"17","auto_complete":0,"POST_data":{"video_id":"41","course_id":"17","auto_complete":"0"}}
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Starting database operations
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Testing PDO connection - {"pdo_defined":true,"pdo_type":"PDO"}
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Checking enrollment
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Enrollment check result - 1
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Checking video belongs to course
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Video check result - {"video_id":41,"title":"welcome"}
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Checking database tables
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Available tables - ["accreditation_audit_log","accreditation_certificates","accreditation_documents","accreditation_notifications","accreditation_requests","accredited_certificates","admin_earnings","admin_library_logs","admin_profiles","assignment_submissions","assignment_submissions_backup_2025_10_28_15_06","assignment_submissions_backup_2025_10_28_15_09","assignment_submissions_backup_2025_10_28_16_51_14","assignments","backup_history","backup_settings","calendar_events","categories","certificate_settings","certificate_template_fields","certificate_templates","certificates","cms_activity_log","cms_admins","cms_content","cms_images","comments","course_materials","course_purchases","course_review_stats","course_reviews","course_sections","course_videos","courses","download_categories","download_history","downloads","email_drafts","email_logs","email_processing_log","email_queue","email_templates","email_verifications","enrollments","forum_replies","forum_topics","forums","identity_verification_logs","library_categories","library_resource_categories","library_resources","library_submissions","material_views","messages","notifications","partnerships","payfast_settings","payments","public_library_resources","question_options","quiz_answers","quiz_attempts","quiz_question_options","quiz_questions","quiz_responses","quiz_results","quiz_submissions","quizzes","ratings","referral_analytics","referral_settings","referrals","reminder_emails","reminder_log","reminder_logs","reminder_system_config","revenue_settings","review_likes","review_replies","secure_referral_codes","settings","sita_assessment_answers","sita_assessment_attempts","sita_assessment_audit_log","sita_assessment_files","sita_assessment_options","sita_assessment_questions","sita_assessments","sita_file_format_presets","sita_question_templates","student_certificates","student_enrollments","student_profiles","student_progress","student_referral_discounts","students","study_reminders","system_settings","teacher_earnings","teacher_profiles","teacher_referral_commissions","teacher_settings","teacher_student_assignments","teachers","user_downloads","user_video_completions","users","video_notes","video_progress","video_purchases","video_views","videos","withdrawal_requests"]
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Checking enrollments table structure
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Enrollments table structure - [{"Field":"enrollment_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"student_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"purchase_id","Type":"int","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"enrolled_date","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"progress","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""}]
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Checking videos table structure
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Videos table structure - [{"Field":"video_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"teacher_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"title","Type":"varchar(255)","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"description","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_url","Type":"varchar(500)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_type","Type":"enum('file','url')","Null":"YES","Key":"MUL","Default":"file","Extra":""},{"Field":"external_url","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"platform","Type":"varchar(50)","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"embed_code","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_id_external","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"thumbnail","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"duration","Type":"varchar(10)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"views","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"likes","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"category_name","Type":"varchar(100)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"is_free","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"is_published","Type":"tinyint(1)","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"created_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"},{"Field":"has_assignment","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"has_quiz","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"video_order","Type":"int","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"prerequisite_video_id","Type":"int","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"linked_content_types","Type":"json","Null":"YES","Key":"","Default":null,"Extra":""}]
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Creating/checking user_video_completions table
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Table creation result - 0
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Checking user_video_completions table structure
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: User_video_completions table structure - [{"Field":"id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"video_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"completion_percentage","Type":"decimal(5,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"watch_time","Type":"decimal(8,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"completed_at","Type":"timestamp","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"}]
[17-Dec-2025 09:11:09 Europe/Berlin] 🐛 DEBUG: Captured output - "<!-- \ud83d\udc1b DEBUG: Debug script started -->\n<!-- \ud83d\udc1b DEBUG: User ID from session - 45 -->\n<!-- \ud83d\udc1b DEBUG: Input data - {\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":0,\"POST_data\":{\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":\"0\"}} -->\n<!-- \ud83d\udc1b DEBUG: Starting database operations -->\n<!-- \ud83d\udc1b DEBUG: Testing PDO connection - {\"pdo_defined\":true,\"pdo_type\":\"PDO\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollment -->\n<!-- \ud83d\udc1b DEBUG: Enrollment check result - 1 -->\n<!-- \ud83d\udc1b DEBUG: Checking video belongs to course -->\n<!-- \ud83d\udc1b DEBUG: Video check result - {\"video_id\":41,\"title\":\"welcome\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking database tables -->\n<!-- \ud83d\udc1b DEBUG: Available tables - [\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"] -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollments table structure -->\n<!-- \ud83d\udc1b DEBUG: Enrollments table structure - [{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Checking videos table structure -->\n<!-- \ud83d\udc1b DEBUG: Videos table structure - [{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Creating\/checking user_video_completions table -->\n<!-- \ud83d\udc1b DEBUG: Table creation result - 0 -->\n<!-- \ud83d\udc1b DEBUG: Checking user_video_completions table structure -->\n<!-- \ud83d\udc1b DEBUG: User_video_completions table structure - [{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}] -->\n{\"success\":true,\"message\":\"Debug completed successfully\",\"debug_data\":{\"user_id\":45,\"video_id\":\"41\",\"course_id\":\"17\",\"enrollment_count\":1,\"video_found\":{\"video_id\":41,\"title\":\"welcome\"},\"tables\":[\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"],\"enrollments_structure\":[{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}],\"videos_structure\":[{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}],\"completions_structure\":[{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}]}}"
[17-Dec-2025 09:11:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:11:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:12:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Debug script started
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: User ID from session - 45
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Input data - {"video_id":"41","course_id":"17","auto_complete":0,"POST_data":{"video_id":"41","course_id":"17","auto_complete":"0"}}
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Starting database operations
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Testing PDO connection - {"pdo_defined":true,"pdo_type":"PDO"}
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Checking enrollment
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Enrollment check result - 1
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Checking video belongs to course
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Video check result - {"video_id":41,"title":"welcome"}
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Checking database tables
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Available tables - ["accreditation_audit_log","accreditation_certificates","accreditation_documents","accreditation_notifications","accreditation_requests","accredited_certificates","admin_earnings","admin_library_logs","admin_profiles","assignment_submissions","assignment_submissions_backup_2025_10_28_15_06","assignment_submissions_backup_2025_10_28_15_09","assignment_submissions_backup_2025_10_28_16_51_14","assignments","backup_history","backup_settings","calendar_events","categories","certificate_settings","certificate_template_fields","certificate_templates","certificates","cms_activity_log","cms_admins","cms_content","cms_images","comments","course_materials","course_purchases","course_review_stats","course_reviews","course_sections","course_videos","courses","download_categories","download_history","downloads","email_drafts","email_logs","email_processing_log","email_queue","email_templates","email_verifications","enrollments","forum_replies","forum_topics","forums","identity_verification_logs","library_categories","library_resource_categories","library_resources","library_submissions","material_views","messages","notifications","partnerships","payfast_settings","payments","public_library_resources","question_options","quiz_answers","quiz_attempts","quiz_question_options","quiz_questions","quiz_responses","quiz_results","quiz_submissions","quizzes","ratings","referral_analytics","referral_settings","referrals","reminder_emails","reminder_log","reminder_logs","reminder_system_config","revenue_settings","review_likes","review_replies","secure_referral_codes","settings","sita_assessment_answers","sita_assessment_attempts","sita_assessment_audit_log","sita_assessment_files","sita_assessment_options","sita_assessment_questions","sita_assessments","sita_file_format_presets","sita_question_templates","student_certificates","student_enrollments","student_profiles","student_progress","student_referral_discounts","students","study_reminders","system_settings","teacher_earnings","teacher_profiles","teacher_referral_commissions","teacher_settings","teacher_student_assignments","teachers","user_downloads","user_video_completions","users","video_notes","video_progress","video_purchases","video_views","videos","withdrawal_requests"]
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Checking enrollments table structure
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Enrollments table structure - [{"Field":"enrollment_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"student_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"purchase_id","Type":"int","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"enrolled_date","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"progress","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""}]
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Checking videos table structure
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Videos table structure - [{"Field":"video_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"teacher_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"title","Type":"varchar(255)","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"description","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_url","Type":"varchar(500)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_type","Type":"enum('file','url')","Null":"YES","Key":"MUL","Default":"file","Extra":""},{"Field":"external_url","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"platform","Type":"varchar(50)","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"embed_code","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_id_external","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"thumbnail","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"duration","Type":"varchar(10)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"views","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"likes","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"category_name","Type":"varchar(100)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"is_free","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"is_published","Type":"tinyint(1)","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"created_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"},{"Field":"has_assignment","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"has_quiz","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"video_order","Type":"int","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"prerequisite_video_id","Type":"int","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"linked_content_types","Type":"json","Null":"YES","Key":"","Default":null,"Extra":""}]
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Creating/checking user_video_completions table
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Table creation result - 0
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Checking user_video_completions table structure
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: User_video_completions table structure - [{"Field":"id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"video_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"completion_percentage","Type":"decimal(5,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"watch_time","Type":"decimal(8,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"completed_at","Type":"timestamp","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"}]
[17-Dec-2025 09:12:14 Europe/Berlin] 🐛 DEBUG: Captured output - "<!-- \ud83d\udc1b DEBUG: Debug script started -->\n<!-- \ud83d\udc1b DEBUG: User ID from session - 45 -->\n<!-- \ud83d\udc1b DEBUG: Input data - {\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":0,\"POST_data\":{\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":\"0\"}} -->\n<!-- \ud83d\udc1b DEBUG: Starting database operations -->\n<!-- \ud83d\udc1b DEBUG: Testing PDO connection - {\"pdo_defined\":true,\"pdo_type\":\"PDO\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollment -->\n<!-- \ud83d\udc1b DEBUG: Enrollment check result - 1 -->\n<!-- \ud83d\udc1b DEBUG: Checking video belongs to course -->\n<!-- \ud83d\udc1b DEBUG: Video check result - {\"video_id\":41,\"title\":\"welcome\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking database tables -->\n<!-- \ud83d\udc1b DEBUG: Available tables - [\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"] -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollments table structure -->\n<!-- \ud83d\udc1b DEBUG: Enrollments table structure - [{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Checking videos table structure -->\n<!-- \ud83d\udc1b DEBUG: Videos table structure - [{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Creating\/checking user_video_completions table -->\n<!-- \ud83d\udc1b DEBUG: Table creation result - 0 -->\n<!-- \ud83d\udc1b DEBUG: Checking user_video_completions table structure -->\n<!-- \ud83d\udc1b DEBUG: User_video_completions table structure - [{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}] -->\n{\"success\":true,\"message\":\"Debug completed successfully\",\"debug_data\":{\"user_id\":45,\"video_id\":\"41\",\"course_id\":\"17\",\"enrollment_count\":1,\"video_found\":{\"video_id\":41,\"title\":\"welcome\"},\"tables\":[\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"],\"enrollments_structure\":[{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}],\"videos_structure\":[{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}],\"completions_structure\":[{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}]}}"
[17-Dec-2025 09:15:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:15:31 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:15:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:15:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:15:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:15:31 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:15:31 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:15:31 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:15:31 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:15:31 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:15:31 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:15:31 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:15:31 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:15:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:15:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:15:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:15:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:15:31 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:15:31 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:15:31 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:15:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:15:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:15:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:15:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:15:31 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:16:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:16:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:16:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Debug script started
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: User ID from session - 45
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Input data - {"video_id":"41","course_id":"17","auto_complete":0,"POST_data":{"video_id":"41","course_id":"17","auto_complete":"0"}}
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Starting database operations
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Testing PDO connection - {"pdo_defined":true,"pdo_type":"PDO"}
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Checking enrollment
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Enrollment check result - 1
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Checking video belongs to course
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Video check result - {"video_id":41,"title":"welcome"}
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Checking database tables
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Available tables - ["accreditation_audit_log","accreditation_certificates","accreditation_documents","accreditation_notifications","accreditation_requests","accredited_certificates","admin_earnings","admin_library_logs","admin_profiles","assignment_submissions","assignment_submissions_backup_2025_10_28_15_06","assignment_submissions_backup_2025_10_28_15_09","assignment_submissions_backup_2025_10_28_16_51_14","assignments","backup_history","backup_settings","calendar_events","categories","certificate_settings","certificate_template_fields","certificate_templates","certificates","cms_activity_log","cms_admins","cms_content","cms_images","comments","course_materials","course_purchases","course_review_stats","course_reviews","course_sections","course_videos","courses","download_categories","download_history","downloads","email_drafts","email_logs","email_processing_log","email_queue","email_templates","email_verifications","enrollments","forum_replies","forum_topics","forums","identity_verification_logs","library_categories","library_resource_categories","library_resources","library_submissions","material_views","messages","notifications","partnerships","payfast_settings","payments","public_library_resources","question_options","quiz_answers","quiz_attempts","quiz_question_options","quiz_questions","quiz_responses","quiz_results","quiz_submissions","quizzes","ratings","referral_analytics","referral_settings","referrals","reminder_emails","reminder_log","reminder_logs","reminder_system_config","revenue_settings","review_likes","review_replies","secure_referral_codes","settings","sita_assessment_answers","sita_assessment_attempts","sita_assessment_audit_log","sita_assessment_files","sita_assessment_options","sita_assessment_questions","sita_assessments","sita_file_format_presets","sita_question_templates","student_certificates","student_enrollments","student_profiles","student_progress","student_referral_discounts","students","study_reminders","system_settings","teacher_earnings","teacher_profiles","teacher_referral_commissions","teacher_settings","teacher_student_assignments","teachers","user_downloads","user_video_completions","users","video_notes","video_progress","video_purchases","video_views","videos","withdrawal_requests"]
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Checking enrollments table structure
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Enrollments table structure - [{"Field":"enrollment_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"student_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"purchase_id","Type":"int","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"enrolled_date","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"progress","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""}]
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Checking videos table structure
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Videos table structure - [{"Field":"video_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"teacher_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"title","Type":"varchar(255)","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"description","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_url","Type":"varchar(500)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_type","Type":"enum('file','url')","Null":"YES","Key":"MUL","Default":"file","Extra":""},{"Field":"external_url","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"platform","Type":"varchar(50)","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"embed_code","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_id_external","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"thumbnail","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"duration","Type":"varchar(10)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"views","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"likes","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"category_name","Type":"varchar(100)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"is_free","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"is_published","Type":"tinyint(1)","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"created_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"},{"Field":"has_assignment","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"has_quiz","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"video_order","Type":"int","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"prerequisite_video_id","Type":"int","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"linked_content_types","Type":"json","Null":"YES","Key":"","Default":null,"Extra":""}]
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Creating/checking user_video_completions table
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Table creation result - 0
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Checking user_video_completions table structure
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: User_video_completions table structure - [{"Field":"id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"video_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"completion_percentage","Type":"decimal(5,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"watch_time","Type":"decimal(8,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"completed_at","Type":"timestamp","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"}]
[17-Dec-2025 09:16:59 Europe/Berlin] 🐛 DEBUG: Captured output - "<!-- \ud83d\udc1b DEBUG: Debug script started -->\n<!-- \ud83d\udc1b DEBUG: User ID from session - 45 -->\n<!-- \ud83d\udc1b DEBUG: Input data - {\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":0,\"POST_data\":{\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":\"0\"}} -->\n<!-- \ud83d\udc1b DEBUG: Starting database operations -->\n<!-- \ud83d\udc1b DEBUG: Testing PDO connection - {\"pdo_defined\":true,\"pdo_type\":\"PDO\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollment -->\n<!-- \ud83d\udc1b DEBUG: Enrollment check result - 1 -->\n<!-- \ud83d\udc1b DEBUG: Checking video belongs to course -->\n<!-- \ud83d\udc1b DEBUG: Video check result - {\"video_id\":41,\"title\":\"welcome\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking database tables -->\n<!-- \ud83d\udc1b DEBUG: Available tables - [\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"] -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollments table structure -->\n<!-- \ud83d\udc1b DEBUG: Enrollments table structure - [{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Checking videos table structure -->\n<!-- \ud83d\udc1b DEBUG: Videos table structure - [{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Creating\/checking user_video_completions table -->\n<!-- \ud83d\udc1b DEBUG: Table creation result - 0 -->\n<!-- \ud83d\udc1b DEBUG: Checking user_video_completions table structure -->\n<!-- \ud83d\udc1b DEBUG: User_video_completions table structure - [{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}] -->\n{\"success\":true,\"message\":\"Debug completed successfully\",\"debug_data\":{\"user_id\":45,\"video_id\":\"41\",\"course_id\":\"17\",\"enrollment_count\":1,\"video_found\":{\"video_id\":41,\"title\":\"welcome\"},\"tables\":[\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"],\"enrollments_structure\":[{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}],\"videos_structure\":[{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}],\"completions_structure\":[{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}]}}"
[17-Dec-2025 09:21:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:21:39 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:21:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:21:39 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:21:39 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:21:39 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:21:39 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:21:39 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:21:39 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:21:39 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:21:39 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:21:39 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:21:39 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:21:39 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:21:39 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:21:39 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:21:39 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:21:39 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:21:39 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:21:39 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:21:39 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:21:39 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:21:39 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:21:40 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:22:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:25:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:25:08 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:25:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:25:08 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:25:08 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:25:08 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:25:08 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:25:08 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:25:08 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:25:08 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:25:09 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:25:09 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:25:09 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:25:09 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:25:09 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:25:09 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:25:09 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:25:09 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:25:09 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:25:09 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:25:09 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:25:09 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:25:09 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:25:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:25:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:25:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:25:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:25:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:25:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:25:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:25:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:25:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:25:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:25:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:25:11 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:26:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:26:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:27:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Debug script started
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: User ID from session - 45
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Input data - {"video_id":"41","course_id":"17","auto_complete":0,"POST_data":{"video_id":"41","course_id":"17","auto_complete":"0"}}
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Starting database operations
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Testing PDO connection - {"pdo_defined":true,"pdo_type":"PDO"}
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Checking enrollment
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Enrollment check result - 1
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Checking video belongs to course
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Video check result - {"video_id":41,"title":"welcome"}
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Checking database tables
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Available tables - ["accreditation_audit_log","accreditation_certificates","accreditation_documents","accreditation_notifications","accreditation_requests","accredited_certificates","admin_earnings","admin_library_logs","admin_profiles","assignment_submissions","assignment_submissions_backup_2025_10_28_15_06","assignment_submissions_backup_2025_10_28_15_09","assignment_submissions_backup_2025_10_28_16_51_14","assignments","backup_history","backup_settings","calendar_events","categories","certificate_settings","certificate_template_fields","certificate_templates","certificates","cms_activity_log","cms_admins","cms_content","cms_images","comments","course_materials","course_purchases","course_review_stats","course_reviews","course_sections","course_videos","courses","download_categories","download_history","downloads","email_drafts","email_logs","email_processing_log","email_queue","email_templates","email_verifications","enrollments","forum_replies","forum_topics","forums","identity_verification_logs","library_categories","library_resource_categories","library_resources","library_submissions","material_views","messages","notifications","partnerships","payfast_settings","payments","public_library_resources","question_options","quiz_answers","quiz_attempts","quiz_question_options","quiz_questions","quiz_responses","quiz_results","quiz_submissions","quizzes","ratings","referral_analytics","referral_settings","referrals","reminder_emails","reminder_log","reminder_logs","reminder_system_config","revenue_settings","review_likes","review_replies","secure_referral_codes","settings","sita_assessment_answers","sita_assessment_attempts","sita_assessment_audit_log","sita_assessment_files","sita_assessment_options","sita_assessment_questions","sita_assessments","sita_file_format_presets","sita_question_templates","student_certificates","student_enrollments","student_profiles","student_progress","student_referral_discounts","students","study_reminders","system_settings","teacher_earnings","teacher_profiles","teacher_referral_commissions","teacher_settings","teacher_student_assignments","teachers","user_downloads","user_video_completions","users","video_notes","video_progress","video_purchases","video_views","videos","withdrawal_requests"]
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Checking enrollments table structure
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Enrollments table structure - [{"Field":"enrollment_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"student_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"purchase_id","Type":"int","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"enrolled_date","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"progress","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""}]
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Checking videos table structure
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Videos table structure - [{"Field":"video_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"teacher_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"title","Type":"varchar(255)","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"description","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_url","Type":"varchar(500)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_type","Type":"enum('file','url')","Null":"YES","Key":"MUL","Default":"file","Extra":""},{"Field":"external_url","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"platform","Type":"varchar(50)","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"embed_code","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_id_external","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"thumbnail","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"duration","Type":"varchar(10)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"views","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"likes","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"category_name","Type":"varchar(100)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"is_free","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"is_published","Type":"tinyint(1)","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"created_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"},{"Field":"has_assignment","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"has_quiz","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"video_order","Type":"int","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"prerequisite_video_id","Type":"int","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"linked_content_types","Type":"json","Null":"YES","Key":"","Default":null,"Extra":""}]
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Creating/checking user_video_completions table
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Table creation result - 0
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Checking user_video_completions table structure
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: User_video_completions table structure - [{"Field":"id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"video_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"completion_percentage","Type":"decimal(5,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"watch_time","Type":"decimal(8,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"completed_at","Type":"timestamp","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"}]
[17-Dec-2025 09:27:01 Europe/Berlin] 🐛 DEBUG: Captured output - "<!-- \ud83d\udc1b DEBUG: Debug script started -->\n<!-- \ud83d\udc1b DEBUG: User ID from session - 45 -->\n<!-- \ud83d\udc1b DEBUG: Input data - {\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":0,\"POST_data\":{\"video_id\":\"41\",\"course_id\":\"17\",\"auto_complete\":\"0\"}} -->\n<!-- \ud83d\udc1b DEBUG: Starting database operations -->\n<!-- \ud83d\udc1b DEBUG: Testing PDO connection - {\"pdo_defined\":true,\"pdo_type\":\"PDO\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollment -->\n<!-- \ud83d\udc1b DEBUG: Enrollment check result - 1 -->\n<!-- \ud83d\udc1b DEBUG: Checking video belongs to course -->\n<!-- \ud83d\udc1b DEBUG: Video check result - {\"video_id\":41,\"title\":\"welcome\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking database tables -->\n<!-- \ud83d\udc1b DEBUG: Available tables - [\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"] -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollments table structure -->\n<!-- \ud83d\udc1b DEBUG: Enrollments table structure - [{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Checking videos table structure -->\n<!-- \ud83d\udc1b DEBUG: Videos table structure - [{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Creating\/checking user_video_completions table -->\n<!-- \ud83d\udc1b DEBUG: Table creation result - 0 -->\n<!-- \ud83d\udc1b DEBUG: Checking user_video_completions table structure -->\n<!-- \ud83d\udc1b DEBUG: User_video_completions table structure - [{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}] -->\n{\"success\":true,\"message\":\"Debug completed successfully\",\"debug_data\":{\"user_id\":45,\"video_id\":\"41\",\"course_id\":\"17\",\"enrollment_count\":1,\"video_found\":{\"video_id\":41,\"title\":\"welcome\"},\"tables\":[\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"],\"enrollments_structure\":[{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}],\"videos_structure\":[{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}],\"completions_structure\":[{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}]}}"
[17-Dec-2025 09:27:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:27:06 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:27:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:27:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:27:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:27:06 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:27:06 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:27:06 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:27:06 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:27:06 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:27:06 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:27:06 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:27:06 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:27:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:27:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:27:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:27:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:27:06 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:27:06 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:27:06 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:27:07 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:27:07 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:27:07 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:27:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:27:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:27:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:27:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:27:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:27:08 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:31:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:31:16 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:31:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:31:16 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:31:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:31:16 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:31:16 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:31:16 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:31:16 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:31:16 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:31:16 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:31:16 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:31:16 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:31:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:31:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:31:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:31:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:31:16 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:31:16 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:31:16 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:31:16 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:31:16 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:31:16 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:31:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:31:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:31:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:31:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:31:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:31:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:31:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:31:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:31:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:31:17 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:32:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:32:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:32:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:32:15 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:32:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:32:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:32:15 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:32:15 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:32:15 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:32:15 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:32:15 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:32:15 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:32:15 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:32:15 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:32:15 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:32:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:32:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:32:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:32:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:32:15 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:32:15 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:32:15 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:32:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:32:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:32:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:32:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:32:16 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:33:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:33:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:33:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:33:23 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:33:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:33:23 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:33:23 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:33:23 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:33:23 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:33:23 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:33:23 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:33:23 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:33:23 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:33:23 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:33:23 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:33:23 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:33:23 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:33:23 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:33:23 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:33:23 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:33:23 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:33:23 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:33:23 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:33:23 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:33:23 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:33:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:33:23 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:36:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:36:16 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:36:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:36:16 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:36:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:36:16 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:36:16 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:36:16 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:36:16 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:36:16 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:36:16 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:36:16 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:36:16 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:36:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:36:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:36:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:36:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:36:16 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:36:16 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:36:16 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:36:17 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:36:17 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:36:17 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:36:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:36:18 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:37:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:37:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:37:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:37:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:37:42 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:37:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:37:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:37:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:37:42 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:37:42 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:37:42 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:37:42 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:37:42 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:37:42 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:37:42 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:37:42 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:37:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:37:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:37:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:37:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:37:42 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:37:42 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:37:42 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:37:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:37:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:37:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:37:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:37:42 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:45:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:45:38 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:45:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:45:39 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:45:39 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:45:39 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:45:39 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:45:39 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:45:39 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:45:39 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:45:39 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:45:39 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:45:39 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:45:39 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:45:39 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:45:39 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:45:39 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:45:39 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:45:39 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:45:39 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:45:39 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 41
[17-Dec-2025 09:45:39 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:45:39 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:45:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:45:39 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:46:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:46:31 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:46:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:46:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:46:41 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:46:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1765951006
    [last_regeneration] => 1765951006
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765951006
    [session_started_at] => 2025-12-17 06:56:47
    [cart] => Array
        (
        )

)

[17-Dec-2025 09:46:41 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 09:46:41 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 09:46:41 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 09:46:41 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 09:46:41 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 09:46:41 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 09:46:41 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 09:46:41 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 09:46:41 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 09:46:41 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 09:46:41 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:46:41 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 09:46:41 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 09:46:41 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 09:46:41 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 09:46:41 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 09:46:41 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 09:46:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 32
[17-Dec-2025 09:46:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 09:46:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 09:46:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 09:46:41 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 09:59:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 09:59:46 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 09:59:46 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765961960
    [created_at] => 1765961960
    [last_regeneration] => 1765961960
    [session_started_at] => 2025-12-17 09:59:21
)

[17-Dec-2025 10:00:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:00:10 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:00:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
)

[17-Dec-2025 10:00:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:00:12 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:00:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

)

[17-Dec-2025 10:00:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:00:17 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:00:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

)

[17-Dec-2025 10:00:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:00:30 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:00:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

)

[17-Dec-2025 10:00:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:00:33 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:00:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

)

[17-Dec-2025 10:00:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:00:35 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:00:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

)

[17-Dec-2025 10:00:35 Europe/Berlin] CART CLEARING: Cleared session cart during checkout process for user 45
[17-Dec-2025 10:01:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:01:11 Europe/Berlin] Payment Return Auth Debug - User ID: 45
[17-Dec-2025 10:01:11 Europe/Berlin] Payment Return Auth Debug - Role: NOT SET
[17-Dec-2025 10:01:11 Europe/Berlin] Payment Return Auth Debug - Is Logged In: YES
[17-Dec-2025 10:01:11 Europe/Berlin] PayFast Return Parameters: Array
(
    [type] => cart
)

[17-Dec-2025 10:01:11 Europe/Berlin] Payment Return: Cart payment detected - clearing session cart immediately
[17-Dec-2025 10:01:11 Europe/Berlin] Payment Return Debug - Session Data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_amount] => 2300
    [payment_course_titles] => Array
        (
            [0] => Math11
        )

    [payment_course_ids] => Array
        (
            [0] => 18
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [description] => welcome
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [teacher_first_name] => Jonnie
                    [teacher_last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

)

[17-Dec-2025 10:01:11 Europe/Berlin] Payment Return Debug - GET params: Array
(
    [type] => cart
)

[17-Dec-2025 10:01:11 Europe/Berlin] Payment Return Debug - Is Cart Payment: YES
[17-Dec-2025 10:01:11 Europe/Berlin] Revenue sharing processed for enrollment 77, purchase 74
[17-Dec-2025 10:01:11 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Math11" - Access Now Available! - failed
[17-Dec-2025 10:01:14 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Math11" - Access Now Available! - sent
[17-Dec-2025 10:01:14 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Math11" - Access Now Available! - sent
[17-Dec-2025 10:01:14 Europe/Berlin] Purchase confirmation email sent: SUCCESS for course 18 to user 45
[17-Dec-2025 10:01:14 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "Math11" - New Student Enrolled! - failed
[17-Dec-2025 10:01:16 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "Math11" - New Student Enrolled! - sent
[17-Dec-2025 10:01:16 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "Math11" - New Student Enrolled! - sent
[17-Dec-2025 10:01:16 Europe/Berlin] Teacher sale notification email sent: SUCCESS for course 18 to teacher
[17-Dec-2025 10:01:16 Europe/Berlin] Payment record SQL error: 
[17-Dec-2025 10:01:16 Europe/Berlin] TEACHER COMMISSION SUCCESS: Inserted R115 commission for teacher 44 from referral 36
[17-Dec-2025 10:01:16 Europe/Berlin] Cart referral rewards processed - 1 rewards given
[17-Dec-2025 10:01:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:01:21 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:01:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:01:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:01:26 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:01:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:01:26 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 10:01:26 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 10:01:26 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 10:01:26 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 10:01:26 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 10:01:26 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 10:01:26 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 10:01:26 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 10:01:26 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 10:01:26 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 10:01:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:01:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 10:01:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 10:01:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:01:26 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 10:01:26 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 10:01:26 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 10:01:26 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 10:01:26 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 10:01:26 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 10:01:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:01:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:01:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:01:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:01:26 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 10:02:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:02:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:03:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:03:07 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:03:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:03:07 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 10:03:07 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 10:03:07 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 10:03:07 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 10:03:07 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 10:03:07 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 10:03:07 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 10:03:07 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 10:03:07 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 10:03:07 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 10:03:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:03:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 10:03:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 10:03:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:03:07 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 10:03:07 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 10:03:07 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 10:03:07 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 10:03:07 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 10:03:07 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 10:03:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:03:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:03:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:03:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:03:07 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 10:04:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:04:57 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:04:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:04:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 10:04:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 10:04:58 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 10:04:58 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 10:04:58 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 10:04:58 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 10:04:58 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 10:04:58 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 10:04:58 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 10:04:58 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 10:04:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:04:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 10:04:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 10:04:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:04:58 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 10:04:58 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 10:04:58 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 10:04:58 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 44
[17-Dec-2025 10:04:58 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 10:04:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 10:04:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:04:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:04:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:04:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:04:58 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 10:08:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Debug script started
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: User ID from session - 45
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Input data - {"video_id":"44","course_id":"18","auto_complete":0,"POST_data":{"video_id":"44","course_id":"18","auto_complete":"0"}}
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Starting database operations
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Testing PDO connection - {"pdo_defined":true,"pdo_type":"PDO"}
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Checking enrollment
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Enrollment check result - 1
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Checking video belongs to course
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Video check result - {"video_id":44,"title":"Computer Science One Minute Major"}
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Checking database tables
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Available tables - ["accreditation_audit_log","accreditation_certificates","accreditation_documents","accreditation_notifications","accreditation_requests","accredited_certificates","admin_earnings","admin_library_logs","admin_profiles","assignment_submissions","assignment_submissions_backup_2025_10_28_15_06","assignment_submissions_backup_2025_10_28_15_09","assignment_submissions_backup_2025_10_28_16_51_14","assignments","backup_history","backup_settings","calendar_events","categories","certificate_settings","certificate_template_fields","certificate_templates","certificates","cms_activity_log","cms_admins","cms_content","cms_images","comments","course_materials","course_purchases","course_review_stats","course_reviews","course_sections","course_videos","courses","download_categories","download_history","downloads","email_drafts","email_logs","email_processing_log","email_queue","email_templates","email_verifications","enrollments","forum_replies","forum_topics","forums","identity_verification_logs","library_categories","library_resource_categories","library_resources","library_submissions","material_views","messages","notifications","partnerships","payfast_settings","payments","public_library_resources","question_options","quiz_answers","quiz_attempts","quiz_question_options","quiz_questions","quiz_responses","quiz_results","quiz_submissions","quizzes","ratings","referral_analytics","referral_settings","referrals","reminder_emails","reminder_log","reminder_logs","reminder_system_config","revenue_settings","review_likes","review_replies","secure_referral_codes","settings","sita_assessment_answers","sita_assessment_attempts","sita_assessment_audit_log","sita_assessment_files","sita_assessment_options","sita_assessment_questions","sita_assessments","sita_file_format_presets","sita_question_templates","student_certificates","student_enrollments","student_profiles","student_progress","student_referral_discounts","students","study_reminders","system_settings","teacher_earnings","teacher_profiles","teacher_referral_commissions","teacher_settings","teacher_student_assignments","teachers","user_downloads","user_video_completions","users","video_notes","video_progress","video_purchases","video_views","videos","withdrawal_requests"]
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Checking enrollments table structure
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Enrollments table structure - [{"Field":"enrollment_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"student_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"course_price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"purchase_id","Type":"int","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"enrolled_date","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"progress","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""}]
[17-Dec-2025 10:08:01 Europe/Berlin] 🐛 DEBUG: Checking videos table structure
[17-Dec-2025 10:08:02 Europe/Berlin] 🐛 DEBUG: Videos table structure - [{"Field":"video_id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"course_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"teacher_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"title","Type":"varchar(255)","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"description","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_url","Type":"varchar(500)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_type","Type":"enum('file','url')","Null":"YES","Key":"MUL","Default":"file","Extra":""},{"Field":"external_url","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"platform","Type":"varchar(50)","Null":"YES","Key":"MUL","Default":null,"Extra":""},{"Field":"embed_code","Type":"text","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"video_id_external","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"thumbnail","Type":"varchar(255)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"duration","Type":"varchar(10)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"price","Type":"decimal(10,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"views","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"likes","Type":"int","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"category_name","Type":"varchar(100)","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"is_free","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"is_published","Type":"tinyint(1)","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"created_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED"},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"},{"Field":"has_assignment","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"has_quiz","Type":"tinyint(1)","Null":"YES","Key":"","Default":"0","Extra":""},{"Field":"video_order","Type":"int","Null":"YES","Key":"","Default":"1","Extra":""},{"Field":"prerequisite_video_id","Type":"int","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"linked_content_types","Type":"json","Null":"YES","Key":"","Default":null,"Extra":""}]
[17-Dec-2025 10:08:02 Europe/Berlin] 🐛 DEBUG: Creating/checking user_video_completions table
[17-Dec-2025 10:08:02 Europe/Berlin] 🐛 DEBUG: Table creation result - 0
[17-Dec-2025 10:08:02 Europe/Berlin] 🐛 DEBUG: Checking user_video_completions table structure
[17-Dec-2025 10:08:02 Europe/Berlin] 🐛 DEBUG: User_video_completions table structure - [{"Field":"id","Type":"int","Null":"NO","Key":"PRI","Default":null,"Extra":"auto_increment"},{"Field":"user_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"video_id","Type":"int","Null":"NO","Key":"","Default":null,"Extra":""},{"Field":"completion_percentage","Type":"decimal(5,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"watch_time","Type":"decimal(8,2)","Null":"YES","Key":"","Default":"0.00","Extra":""},{"Field":"completed_at","Type":"timestamp","Null":"YES","Key":"","Default":null,"Extra":""},{"Field":"updated_at","Type":"timestamp","Null":"NO","Key":"","Default":"CURRENT_TIMESTAMP","Extra":"DEFAULT_GENERATED on update CURRENT_TIMESTAMP"}]
[17-Dec-2025 10:08:02 Europe/Berlin] 🐛 DEBUG: Captured output - "<!-- \ud83d\udc1b DEBUG: Debug script started -->\n<!-- \ud83d\udc1b DEBUG: User ID from session - 45 -->\n<!-- \ud83d\udc1b DEBUG: Input data - {\"video_id\":\"44\",\"course_id\":\"18\",\"auto_complete\":0,\"POST_data\":{\"video_id\":\"44\",\"course_id\":\"18\",\"auto_complete\":\"0\"}} -->\n<!-- \ud83d\udc1b DEBUG: Starting database operations -->\n<!-- \ud83d\udc1b DEBUG: Testing PDO connection - {\"pdo_defined\":true,\"pdo_type\":\"PDO\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollment -->\n<!-- \ud83d\udc1b DEBUG: Enrollment check result - 1 -->\n<!-- \ud83d\udc1b DEBUG: Checking video belongs to course -->\n<!-- \ud83d\udc1b DEBUG: Video check result - {\"video_id\":44,\"title\":\"Computer Science One Minute Major\"} -->\n<!-- \ud83d\udc1b DEBUG: Checking database tables -->\n<!-- \ud83d\udc1b DEBUG: Available tables - [\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"] -->\n<!-- \ud83d\udc1b DEBUG: Checking enrollments table structure -->\n<!-- \ud83d\udc1b DEBUG: Enrollments table structure - [{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Checking videos table structure -->\n<!-- \ud83d\udc1b DEBUG: Videos table structure - [{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}] -->\n<!-- \ud83d\udc1b DEBUG: Creating\/checking user_video_completions table -->\n<!-- \ud83d\udc1b DEBUG: Table creation result - 0 -->\n<!-- \ud83d\udc1b DEBUG: Checking user_video_completions table structure -->\n<!-- \ud83d\udc1b DEBUG: User_video_completions table structure - [{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}] -->\n{\"success\":true,\"message\":\"Debug completed successfully\",\"debug_data\":{\"user_id\":45,\"video_id\":\"44\",\"course_id\":\"18\",\"enrollment_count\":1,\"video_found\":{\"video_id\":44,\"title\":\"Computer Science One Minute Major\"},\"tables\":[\"accreditation_audit_log\",\"accreditation_certificates\",\"accreditation_documents\",\"accreditation_notifications\",\"accreditation_requests\",\"accredited_certificates\",\"admin_earnings\",\"admin_library_logs\",\"admin_profiles\",\"assignment_submissions\",\"assignment_submissions_backup_2025_10_28_15_06\",\"assignment_submissions_backup_2025_10_28_15_09\",\"assignment_submissions_backup_2025_10_28_16_51_14\",\"assignments\",\"backup_history\",\"backup_settings\",\"calendar_events\",\"categories\",\"certificate_settings\",\"certificate_template_fields\",\"certificate_templates\",\"certificates\",\"cms_activity_log\",\"cms_admins\",\"cms_content\",\"cms_images\",\"comments\",\"course_materials\",\"course_purchases\",\"course_review_stats\",\"course_reviews\",\"course_sections\",\"course_videos\",\"courses\",\"download_categories\",\"download_history\",\"downloads\",\"email_drafts\",\"email_logs\",\"email_processing_log\",\"email_queue\",\"email_templates\",\"email_verifications\",\"enrollments\",\"forum_replies\",\"forum_topics\",\"forums\",\"identity_verification_logs\",\"library_categories\",\"library_resource_categories\",\"library_resources\",\"library_submissions\",\"material_views\",\"messages\",\"notifications\",\"partnerships\",\"payfast_settings\",\"payments\",\"public_library_resources\",\"question_options\",\"quiz_answers\",\"quiz_attempts\",\"quiz_question_options\",\"quiz_questions\",\"quiz_responses\",\"quiz_results\",\"quiz_submissions\",\"quizzes\",\"ratings\",\"referral_analytics\",\"referral_settings\",\"referrals\",\"reminder_emails\",\"reminder_log\",\"reminder_logs\",\"reminder_system_config\",\"revenue_settings\",\"review_likes\",\"review_replies\",\"secure_referral_codes\",\"settings\",\"sita_assessment_answers\",\"sita_assessment_attempts\",\"sita_assessment_audit_log\",\"sita_assessment_files\",\"sita_assessment_options\",\"sita_assessment_questions\",\"sita_assessments\",\"sita_file_format_presets\",\"sita_question_templates\",\"student_certificates\",\"student_enrollments\",\"student_profiles\",\"student_progress\",\"student_referral_discounts\",\"students\",\"study_reminders\",\"system_settings\",\"teacher_earnings\",\"teacher_profiles\",\"teacher_referral_commissions\",\"teacher_settings\",\"teacher_student_assignments\",\"teachers\",\"user_downloads\",\"user_video_completions\",\"users\",\"video_notes\",\"video_progress\",\"video_purchases\",\"video_views\",\"videos\",\"withdrawal_requests\"],\"enrollments_structure\":[{\"Field\":\"enrollment_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"student_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"course_price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"purchase_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"enrolled_date\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"progress\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"}],\"videos_structure\":[{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"course_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"teacher_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"title\",\"Type\":\"varchar(255)\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"description\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_url\",\"Type\":\"varchar(500)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_type\",\"Type\":\"enum('file','url')\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":\"file\",\"Extra\":\"\"},{\"Field\":\"external_url\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"platform\",\"Type\":\"varchar(50)\",\"Null\":\"YES\",\"Key\":\"MUL\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"embed_code\",\"Type\":\"text\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id_external\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"thumbnail\",\"Type\":\"varchar(255)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"duration\",\"Type\":\"varchar(10)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"price\",\"Type\":\"decimal(10,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"views\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"likes\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"category_name\",\"Type\":\"varchar(100)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"is_free\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"is_published\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"created_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"},{\"Field\":\"has_assignment\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"has_quiz\",\"Type\":\"tinyint(1)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0\",\"Extra\":\"\"},{\"Field\":\"video_order\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"1\",\"Extra\":\"\"},{\"Field\":\"prerequisite_video_id\",\"Type\":\"int\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"linked_content_types\",\"Type\":\"json\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"}],\"completions_structure\":[{\"Field\":\"id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"PRI\",\"Default\":null,\"Extra\":\"auto_increment\"},{\"Field\":\"user_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"video_id\",\"Type\":\"int\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"completion_percentage\",\"Type\":\"decimal(5,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"watch_time\",\"Type\":\"decimal(8,2)\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":\"0.00\",\"Extra\":\"\"},{\"Field\":\"completed_at\",\"Type\":\"timestamp\",\"Null\":\"YES\",\"Key\":\"\",\"Default\":null,\"Extra\":\"\"},{\"Field\":\"updated_at\",\"Type\":\"timestamp\",\"Null\":\"NO\",\"Key\":\"\",\"Default\":\"CURRENT_TIMESTAMP\",\"Extra\":\"DEFAULT_GENERATED on update CURRENT_TIMESTAMP\"}]}}"
[17-Dec-2025 10:08:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:09:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:09:12 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:09:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:09:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 10:09:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 10:09:12 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 10:09:12 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 10:09:12 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 10:09:12 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 10:09:12 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 10:09:12 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 10:09:12 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 10:09:12 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 10:09:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:09:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 10:09:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 10:09:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:09:12 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 10:09:12 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 10:09:12 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 10:09:12 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 44
[17-Dec-2025 10:09:12 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 10:09:12 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 10:09:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:09:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:09:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:09:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:09:12 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 10:10:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:10:33 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:10:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:10:33 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 10:10:33 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 10:10:33 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 10:10:33 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 10:10:33 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 10:10:33 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 10:10:33 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 10:10:33 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 10:10:33 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 10:10:33 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 10:10:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:10:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 10:10:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 10:10:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:10:33 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 10:10:33 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 10:10:33 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 10:10:33 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 10:10:33 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 10:10:33 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 10:10:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:10:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:10:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:10:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:10:33 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 10:28:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:28:13 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:28:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:28:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:28:24 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:28:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:28:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:28:37 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:28:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:28:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:28:44 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:28:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:28:44 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 10:28:44 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 10:28:44 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 10:28:44 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 10:28:44 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 10:28:44 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 10:28:44 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 10:28:44 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 10:28:44 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 10:28:44 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 10:28:44 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:28:44 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 10:28:44 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 10:28:44 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:28:44 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 10:28:44 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 10:28:44 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 10:28:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 10:28:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 10:28:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 10:28:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:28:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:28:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:28:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:28:45 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 10:39:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:39:40 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:39:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:39:40 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 10:39:40 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 10:39:40 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 10:39:40 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 10:39:40 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 10:39:40 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 10:39:40 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 10:39:40 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 10:39:40 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 10:39:40 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 10:39:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:39:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 10:39:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 10:39:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:39:40 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 10:39:40 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 10:39:40 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 10:39:40 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 10:39:40 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 10:39:40 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 10:39:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:39:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:39:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:39:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:39:41 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 10:51:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:51:03 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:51:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:51:03 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 10:51:03 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 10:51:03 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 10:51:03 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 10:51:03 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 10:51:03 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 10:51:03 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 10:51:04 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 10:51:04 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 10:51:04 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 10:51:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:51:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 10:51:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 10:51:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:51:04 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 10:51:04 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 10:51:04 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 10:51:04 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 10:51:04 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 10:51:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 10:51:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:51:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:51:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:51:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:51:04 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 10:59:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 10:59:19 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 10:59:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 10:59:19 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 10:59:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 10:59:19 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 10:59:19 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 10:59:19 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 10:59:19 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 10:59:19 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 10:59:19 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 10:59:19 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 10:59:19 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 10:59:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:59:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 10:59:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 10:59:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 10:59:19 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 10:59:19 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 10:59:19 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 10:59:19 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 10:59:19 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 10:59:19 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 10:59:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:59:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:59:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 10:59:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 10:59:20 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 11:01:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 11:01:09 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 11:01:09 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 11:01:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 11:01:12 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 11:01:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 11:01:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 11:01:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 11:01:12 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 11:01:12 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 11:01:12 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 11:01:12 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 11:01:12 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 11:01:12 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 11:01:12 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 11:01:12 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 11:01:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 11:01:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 11:01:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 11:01:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 11:01:12 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 11:01:12 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 11:01:12 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 11:01:12 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 11:01:12 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 11:01:12 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 11:01:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 11:01:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 11:01:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 11:01:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 11:01:13 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 11:34:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 11:34:55 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 11:34:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 11:34:55 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 11:34:55 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 11:34:55 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 11:34:55 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 11:34:55 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 11:34:55 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 11:34:55 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 11:34:55 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 11:34:55 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 11:34:55 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 11:34:55 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 11:34:55 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 11:34:55 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 11:34:55 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 11:34:55 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 11:34:55 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 11:34:55 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 11:34:55 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 44
[17-Dec-2025 11:34:55 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 11:34:55 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 11:34:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 11:34:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 11:34:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 11:34:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 11:34:55 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 11:35:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 11:35:07 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 11:35:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 12:02:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 12:02:52 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 12:02:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 12:03:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 12:03:23 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 12:03:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1765962009
    [last_regeneration] => 1765962009
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765962009
    [session_started_at] => 2025-12-17 10:00:10
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 18
                    [title] => Math11
                    [price] => 2300.00
                    [thumbnail] => ../uploads/thumbnails/course_1765961711_69426fefc10f3.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2300
)

[17-Dec-2025 12:04:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 12:04:20 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 12:04:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1765969459
    [last_regeneration] => 1765969459
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765969459
    [session_started_at] => 2025-12-17 12:04:20
)

[17-Dec-2025 12:04:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 12:04:20 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 12:04:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1765969459
    [last_regeneration] => 1765969459
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765969459
    [session_started_at] => 2025-12-17 12:04:20
    [cart] => Array
        (
        )

)

[17-Dec-2025 12:04:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 12:04:26 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 12:04:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1765969459
    [last_regeneration] => 1765969459
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765969459
    [session_started_at] => 2025-12-17 12:04:20
    [cart] => Array
        (
        )

)

[17-Dec-2025 12:04:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 12:04:31 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 12:04:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1765969459
    [last_regeneration] => 1765969459
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765969459
    [session_started_at] => 2025-12-17 12:04:20
    [cart] => Array
        (
        )

)

[17-Dec-2025 12:04:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 12:04:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 12:04:31 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 12:04:31 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 12:04:31 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 12:04:31 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 12:04:31 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 12:04:31 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 12:04:31 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 12:04:31 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 12:04:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 12:04:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 12:04:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 12:04:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 12:04:31 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 12:04:31 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 12:04:31 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 12:04:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 12:04:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 12:04:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 12:04:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 12:04:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 12:04:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 12:04:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 12:04:31 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:16:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:16:19 Europe/Berlin] isLoggedIn check result: false
[17-Dec-2025 15:16:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
)

[17-Dec-2025 15:16:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:16:25 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:16:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:16:25 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:16:25 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:16:25 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:16:25 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:16:25 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:16:25 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:16:25 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:16:25 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:16:25 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:16:25 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:16:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:16:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:16:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:16:25 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:16:25 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:16:25 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:16:25 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:16:25 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:16:25 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:16:25 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:16:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:16:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:16:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:16:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:16:25 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:19:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:19:56 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:19:56 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:19:56 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:19:56 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:19:57 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:19:57 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:19:57 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:19:57 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:19:57 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:19:57 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:19:57 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:19:57 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:19:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:19:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:19:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:19:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:19:57 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:19:57 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:19:57 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:19:57 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:19:57 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:19:57 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:19:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:19:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:19:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:19:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:19:57 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:22:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:22:45 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:22:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:22:45 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:22:45 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:22:45 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:22:45 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:22:45 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:22:45 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:22:45 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:22:45 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:22:45 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:22:45 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:22:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:22:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:22:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:22:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:22:45 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:22:45 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:22:45 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:22:45 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:22:45 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:22:45 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:22:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:22:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:22:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:22:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:22:45 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:23:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:23:46 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:23:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:23:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:23:46 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:23:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:23:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:23:52 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:23:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:23:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:23:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:23:52 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:23:52 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:23:52 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:23:52 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:23:52 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:23:52 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:23:52 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:23:52 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:23:52 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:23:52 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:23:52 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:23:52 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:23:52 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:23:52 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:23:52 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:23:52 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:23:52 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:23:52 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:23:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:23:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:23:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:23:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:23:52 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:27:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:27:43 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:27:43 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:27:43 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:27:43 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:27:43 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:27:43 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:27:43 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:27:43 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:27:43 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:27:43 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:27:43 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:27:43 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:27:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:27:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:27:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:27:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:27:43 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:27:43 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:27:43 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:27:43 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:27:43 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:27:43 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:27:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:27:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:27:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:27:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:27:43 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:31:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:31:14 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:31:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:31:14 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:31:14 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:31:14 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:31:14 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:31:14 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:31:14 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:31:14 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:31:14 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:31:14 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:31:14 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:31:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:31:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:31:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:31:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:31:14 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:31:14 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:31:14 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:31:14 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:31:14 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:31:14 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:31:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:31:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:31:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:31:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:31:15 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:31:36 Europe/Berlin] PHP Warning:  session_start(): open(C:\Users\user\Downloads\xamppfile\tmp/sess_gku67r57p1f81r60doih30pu36, O_RDWR) failed: No such file or directory (2) in /home/twpurnyc/public_html/student/submit_review.php on line 9
[17-Dec-2025 15:31:36 Europe/Berlin] PHP Warning:  session_start(): Failed to read session data: files (path: C:\Users\user\Downloads\xamppfile\tmp) in /home/twpurnyc/public_html/student/submit_review.php on line 9
[17-Dec-2025 15:31:36 Europe/Berlin] PHP Warning:  require_once(../config/database.php): failed to open stream: No such file or directory in /home/twpurnyc/public_html/student/submit_review.php on line 12
[17-Dec-2025 15:31:36 Europe/Berlin] PHP Fatal error:  require_once(): Failed opening required '../config/database.php' (include_path='C:\Users\user\Downloads\xamppfile\php\PEAR') in /home/twpurnyc/public_html/student/submit_review.php on line 12
[17-Dec-2025 15:33:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:33:42 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:33:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:33:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:33:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:33:42 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:33:42 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:33:42 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:33:42 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:33:42 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:33:42 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:33:42 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:33:42 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:33:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:33:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:33:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:33:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:33:42 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:33:42 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:33:42 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:33:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:33:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:33:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:33:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:33:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:33:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:33:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:33:42 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:36:56 Europe/Berlin] PHP Warning:  session_start(): open(C:\Users\user\Downloads\xamppfile\tmp/sess_gku67r57p1f81r60doih30pu36, O_RDWR) failed: No such file or directory (2) in /home/twpurnyc/public_html/student/debug_database.php on line 21
[17-Dec-2025 15:36:56 Europe/Berlin] PHP Warning:  session_start(): Failed to read session data: files (path: C:\Users\user\Downloads\xamppfile\tmp) in /home/twpurnyc/public_html/student/debug_database.php on line 21
[17-Dec-2025 15:38:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:38:36 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:38:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:38:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:38:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:38:36 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:38:36 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:38:36 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:38:36 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:38:36 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:38:36 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:38:36 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:38:36 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:38:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:38:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:38:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:38:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:38:36 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:38:36 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:38:36 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:38:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:38:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:38:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:38:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:38:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:38:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:38:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:38:36 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:38:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:38:45 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:38:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:38:45 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:38:45 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:38:45 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:38:45 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:38:45 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:38:45 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:38:45 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:38:45 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:38:45 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:38:45 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:38:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:38:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:38:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:38:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:38:45 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:38:45 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:38:45 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:38:45 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:38:45 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:38:45 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:38:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:38:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:38:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:38:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:38:46 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 14:39:09 UTC] 📝 REVIEW SUBMIT: Database connected successfully to twpurnyc_panadite_DB
[17-Dec-2025 14:39:09 UTC] 📝 REVIEW SUBMIT: Review submission script started
[17-Dec-2025 14:39:09 UTC] 📝 REVIEW SUBMIT: User not logged in
[17-Dec-2025 14:39:51 UTC] 📝 REVIEW SUBMIT: Database connected successfully to twpurnyc_panadite_DB
[17-Dec-2025 14:39:51 UTC] 📝 REVIEW SUBMIT: Review submission script started
[17-Dec-2025 14:39:51 UTC] 📝 REVIEW SUBMIT: User not logged in
[17-Dec-2025 15:41:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:41:55 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:41:55 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:41:55 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:41:55 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:41:55 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:41:55 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:41:55 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:41:55 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:41:55 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:41:55 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:41:55 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:41:55 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:41:55 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:41:55 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:41:55 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:41:55 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:41:55 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:41:55 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:41:55 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:41:55 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:41:55 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:41:55 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:41:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:41:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:41:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:41:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:41:55 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:42:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:42:16 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:42:16 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:42:17 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:42:17 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:42:17 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:42:17 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:42:17 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:42:17 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:42:17 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:42:17 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:42:17 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:42:17 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:42:17 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:42:17 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:42:17 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:42:17 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:42:17 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:42:17 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:42:17 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:42:17 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:42:17 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:42:17 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:42:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:42:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:42:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:42:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:42:17 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:42:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 14:42:40 UTC] 📝 REVIEW SUBMIT: Database connected successfully to twpurnyc_panadite_DB
[17-Dec-2025 14:42:40 UTC] 📝 REVIEW SUBMIT: Review submission script started
[17-Dec-2025 14:42:40 UTC] 📝 REVIEW SUBMIT: Form data received | Data: {"user_id":45,"course_id":"cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09","rating":"2","title_length":32,"text_length":89}
[17-Dec-2025 14:42:40 UTC] 📝 REVIEW SUBMIT: Invalid course ID
[17-Dec-2025 15:43:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:43:51 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:43:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:43:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:43:53 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:43:53 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:43:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:43:57 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:43:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:44:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:44:43 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:44:43 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:46:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:46:47 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:46:47 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:46:48 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:46:48 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:46:48 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:46:48 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:46:48 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:46:48 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:46:48 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:46:48 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:46:48 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:46:48 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:46:48 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:46:48 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:46:48 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:46:48 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:46:48 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:46:48 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:46:48 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:46:48 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:46:48 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:46:48 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:46:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:46:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:46:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:46:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:46:48 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:47:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 14:47:09 UTC] 📝 REVIEW SUBMIT: Database connected successfully to twpurnyc_panadite_DB
[17-Dec-2025 14:47:09 UTC] 📝 REVIEW SUBMIT: Review submission script started
[17-Dec-2025 14:47:09 UTC] 📝 REVIEW SUBMIT: Form data received | Data: {"user_id":45,"course_id":"cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09","rating":"2","title_length":32,"text_length":70}
[17-Dec-2025 14:47:09 UTC] 📝 REVIEW SUBMIT: Course ID decryption | Data: {"encrypted":"cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09","decrypted":18,"is_numeric":true}
[17-Dec-2025 14:47:09 UTC] 📝 REVIEW SUBMIT: Course ID decrypted | Data: 18
[17-Dec-2025 14:47:09 UTC] 📝 REVIEW SUBMIT: Exception occurred | Data: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'"
[17-Dec-2025 14:47:09 UTC] 📝 REVIEW SUBMIT ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list' | File: /home/twpurnyc/public_html/student/submit_review.php | Line: 169
[17-Dec-2025 15:49:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:49:57 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:49:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:49:57 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:49:57 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:49:57 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:49:57 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:49:57 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:49:57 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:49:57 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:49:57 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:49:57 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:49:57 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:49:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:49:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:49:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:49:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:49:57 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:49:57 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:49:57 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:49:57 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:49:57 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:49:57 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:49:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:49:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:49:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:49:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:49:57 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:50:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Database connected successfully to twpurnyc_panadite_DB
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Review submission script started
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Form data received | Data: {"user_id":45,"course_id":"cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09","rating":"2","title_length":32,"text_length":65}
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Course ID decryption | Data: {"encrypted":"cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09","decrypted":18,"is_numeric":true}
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Course ID decrypted | Data: 18
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT enrollment_id FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT id FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT * FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Found enrollment with query: SELECT * FROM enrollments WHERE user_id = ? AND course_id = ? LIMIT 1
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT review_id FROM course_reviews WHERE user_id = ? AND course_id = ? - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'where clause'
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT id FROM course_reviews WHERE user_id = ? AND course_id = ? - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT * FROM course_reviews WHERE user_id = ? AND course_id = ? LIMIT 1 - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'where clause'
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Course reviews table ensured successfully
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Insert query failed: INSERT INTO course_reviews (user_id, course_id, rating, review_title, review_text, status, created_at, updated_at) VALUES (?, ?, ?, ?, ?, 'approved', NOW(), NOW()) - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'field list'
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Insert query failed: INSERT INTO course_reviews (user_id, course_id, rating, review_title, review_text, status, created_at) VALUES (?, ?, ?, ?, ?, 'approved', NOW()) - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'field list'
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Insert query failed: INSERT INTO course_reviews (user_id, course_id, rating, review_title, review_text, status) VALUES (?, ?, ?, ?, ?, 'approved') - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'field list'
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Insert query failed: INSERT INTO course_reviews (user_id, course_id, rating, review_title, review_text) VALUES (?, ?, ?, ?, ?) - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'field list'
[17-Dec-2025 14:50:25 UTC] 📝 REVIEW SUBMIT: Failed to insert review | Data: ["42S22",1054,"Unknown column 'user_id' in 'field list'"]
[17-Dec-2025 15:53:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:54:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:54:40 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:54:40 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:54:40 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:54:40 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:54:40 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:54:40 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:54:40 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:54:40 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:54:40 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:54:40 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:54:40 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:54:40 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:54:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:54:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:54:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:54:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:54:40 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:54:40 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:54:40 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:54:40 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:54:40 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:54:40 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:54:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:54:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:54:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:54:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:54:40 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 15:55:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Database connected successfully to twpurnyc_panadite_DB
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Review submission script started
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Form data received | Data: {"user_id":45,"course_id":"cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09","rating":"3","title_length":32,"text_length":69}
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Course ID decryption | Data: {"encrypted":"cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09","decrypted":18,"is_numeric":true}
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Course ID decrypted | Data: 18
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT enrollment_id FROM enrollments WHERE student_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT enrollment_id FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT id FROM enrollments WHERE student_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT id FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Found enrollment with query: SELECT * FROM enrollments WHERE student_id = ? AND course_id = ? LIMIT 1
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT review_id FROM course_reviews WHERE user_id = ? AND course_id = ? - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'where clause'
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT id FROM course_reviews WHERE student_id = ? AND course_id = ? - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[17-Dec-2025 14:55:04 UTC] 📝 REVIEW SUBMIT: Course reviews table ensured successfully
[17-Dec-2025 14:55:05 UTC] 📝 REVIEW SUBMIT: Review inserted successfully with query: INSERT INTO course_reviews (student_id, course_id, rating, review_title, review_text, is_approved, created_at, updated_at) VALUES (?, ?, ?, ?, ?, 1, NOW(), NOW()) | Data: {"review_id":"7"}
[17-Dec-2025 14:55:05 UTC] 📝 REVIEW SUBMIT: Review saved successfully | Data: {"review_id":"7"}
[17-Dec-2025 14:55:06 UTC] 📝 REVIEW SUBMIT: Exception occurred | Data: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'"
[17-Dec-2025 14:55:06 UTC] 📝 REVIEW SUBMIT ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause' | File: /home/twpurnyc/public_html/student/submit_review.php | Line: 294
[17-Dec-2025 15:56:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:56:45 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 15:56:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 15:56:45 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 15:56:45 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 15:56:45 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 15:56:45 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 15:56:45 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 15:56:45 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 15:56:45 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 15:56:45 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 15:56:45 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 15:56:45 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 15:56:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:56:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 15:56:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 15:56:45 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 15:56:45 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 15:56:45 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 15:56:45 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 15:56:45 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 15:56:45 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 15:56:45 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 15:56:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:56:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:56:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 15:56:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 15:56:45 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:00:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:00:34 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:00:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 16:00:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:00:40 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:00:40 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 16:00:40 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 16:00:40 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:00:40 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 16:00:40 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:00:40 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:00:40 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:00:40 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:00:40 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:00:40 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:00:40 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:00:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:00:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:00:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:00:40 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:00:40 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:00:40 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:00:40 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:00:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 32
[17-Dec-2025 16:00:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 16:00:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:00:41 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:01:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Database connected successfully to twpurnyc_panadite_DB
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Review submission script started
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Form data received | Data: {"user_id":45,"course_id":"TkJFZVVpM0ExcXdLMVVZQ1JVRlYzUT09","rating":"3","title_length":32,"text_length":82}
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Course ID decryption | Data: {"encrypted":"TkJFZVVpM0ExcXdLMVVZQ1JVRlYzUT09","decrypted":17,"is_numeric":true}
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Course ID decrypted | Data: 17
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT enrollment_id FROM enrollments WHERE student_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT enrollment_id FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT id FROM enrollments WHERE student_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT id FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Found enrollment with query: SELECT * FROM enrollments WHERE student_id = ? AND course_id = ? LIMIT 1
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT review_id FROM course_reviews WHERE user_id = ? AND course_id = ? - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'where clause'
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT * FROM course_reviews WHERE user_id = ? AND course_id = ? LIMIT 1 - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'where clause'
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Course reviews table ensured successfully
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Review inserted successfully with query: INSERT INTO course_reviews (student_id, course_id, rating, review_title, review_text, is_approved, created_at, updated_at) VALUES (?, ?, ?, ?, ?, 1, NOW(), NOW()) | Data: {"review_id":"8"}
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Review saved successfully | Data: {"review_id":"8"}
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT: Exception occurred | Data: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'"
[17-Dec-2025 15:01:08 UTC] 📝 REVIEW SUBMIT ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause' | File: /home/twpurnyc/public_html/student/submit_review.php | Line: 294
[17-Dec-2025 16:01:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:01:19 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:01:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 16:01:19 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[17-Dec-2025 16:01:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:01:19 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 17
[17-Dec-2025 16:01:19 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:01:19 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:01:19 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:01:19 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:01:19 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:01:19 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:01:19 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:01:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:01:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:01:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:01:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:01:19 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:01:19 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:01:19 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:01:19 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 32
[17-Dec-2025 16:01:19 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[17-Dec-2025 16:01:19 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[17-Dec-2025 16:01:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:20 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:01:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:01:51 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:01:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 16:01:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:01:57 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:01:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 16:01:57 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 16:01:57 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:01:57 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 16:01:57 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:01:57 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:01:57 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:01:57 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:01:57 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:01:57 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:01:57 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:01:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:01:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:01:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:01:57 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:01:57 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:01:57 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:01:57 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:01:57 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 16:01:57 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 16:01:57 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:01:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:01:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:01:57 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:03:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:03:20 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:03:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 16:03:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 16:03:20 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:03:20 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 16:03:20 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:03:20 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:03:20 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:03:20 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:03:20 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:03:20 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:03:20 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:03:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:03:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:03:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:03:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:03:20 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:03:20 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:03:20 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:03:20 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 16:03:20 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 16:03:20 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:03:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:03:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:03:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:03:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:03:20 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:07:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:07:38 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:07:38 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 16:07:38 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 16:07:38 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:07:38 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 16:07:38 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:07:38 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:07:38 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:07:38 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:07:38 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:07:38 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:07:38 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:07:38 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:07:38 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:07:38 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:07:38 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:07:38 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:07:38 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:07:38 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:07:38 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 16:07:38 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 16:07:38 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:07:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:07:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:07:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:07:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:07:39 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:08:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:08:33 Europe/Berlin] [2025-12-17 16:08:33] UPDATE REVIEW: Update review script started
[17-Dec-2025 16:08:33 Europe/Berlin] [2025-12-17 16:08:33] UPDATE REVIEW: Received data - Data: {"review_id":7,"rating":"2","title":"welcome to me","text":"asx we ed ed we"}
[17-Dec-2025 16:08:33 Europe/Berlin] [2025-12-17 16:08:33] UPDATE REVIEW: Parsed input - Data: {"review_id":7,"rating":2,"title_length":13,"text_length":15}
[17-Dec-2025 16:08:33 Europe/Berlin] [2025-12-17 16:08:33] UPDATE REVIEW: User ID: 45
[17-Dec-2025 15:08:33 UTC] [2025-12-17 15:08:33] UPDATE REVIEW: Database connected via db_connect.php (converted from mysqli)
[17-Dec-2025 15:08:33 UTC] [2025-12-17 15:08:33] UPDATE REVIEW: Found existing review with query: SELECT review_id, student_id, course_id FROM course_reviews WHERE review_id = ? AND student_id = ? - Data: {"review_id":"7","student_id":"45","course_id":"18"}
[17-Dec-2025 15:08:33 UTC] [2025-12-17 15:08:33] UPDATE REVIEW: Review updated successfully with query: UPDATE course_reviews SET rating = ?, review_title = ?, review_text = ?, updated_at = NOW() WHERE review_id = ? AND student_id = ?
[17-Dec-2025 15:08:33 UTC] [2025-12-17 15:08:33] UPDATE REVIEW: Course rating update failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'
[17-Dec-2025 15:08:33 UTC] [2025-12-17 15:08:33] UPDATE REVIEW: Review update completed successfully
[17-Dec-2025 16:08:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:08:36 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:08:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 16:08:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[17-Dec-2025 16:08:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:08:36 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[17-Dec-2025 16:08:36 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:08:36 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:08:36 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:08:36 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:08:36 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:08:36 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:08:36 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:08:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:08:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:08:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:08:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:08:36 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:08:36 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:08:36 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:08:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[17-Dec-2025 16:08:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[17-Dec-2025 16:08:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:08:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:08:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:08:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:08:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[17-Dec-2025 16:08:36 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:09:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:09:19 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:09:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 16:09:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:09:31 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:09:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
)

[17-Dec-2025 16:09:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:09:33 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:09:33 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

)

[17-Dec-2025 16:09:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:09:36 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:09:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

)

[17-Dec-2025 16:09:36 Europe/Berlin] CART CLEARING: Cleared session cart during checkout process for user 45
[17-Dec-2025 16:10:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:10:04 Europe/Berlin] Payment Return Auth Debug - User ID: 45
[17-Dec-2025 16:10:04 Europe/Berlin] Payment Return Auth Debug - Role: NOT SET
[17-Dec-2025 16:10:04 Europe/Berlin] Payment Return Auth Debug - Is Logged In: YES
[17-Dec-2025 16:10:04 Europe/Berlin] PayFast Return Parameters: Array
(
    [type] => cart
)

[17-Dec-2025 16:10:04 Europe/Berlin] Payment Return: Cart payment detected - clearing session cart immediately
[17-Dec-2025 16:10:04 Europe/Berlin] Payment Return Debug - Session Data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_amount] => 3500
    [payment_course_titles] => Array
        (
            [0] => Web development
        )

    [payment_course_ids] => Array
        (
            [0] => 14
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [description] => welcome
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [teacher_first_name] => jas
                    [teacher_last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

)

[17-Dec-2025 16:10:04 Europe/Berlin] Payment Return Debug - GET params: Array
(
    [type] => cart
)

[17-Dec-2025 16:10:04 Europe/Berlin] Payment Return Debug - Is Cart Payment: YES
[17-Dec-2025 16:10:04 Europe/Berlin] Revenue sharing processed for enrollment 78, purchase 75
[17-Dec-2025 16:10:04 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Web development" - Access Now Available! - failed
[17-Dec-2025 16:10:06 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Web development" - Access Now Available! - sent
[17-Dec-2025 16:10:06 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Web development" - Access Now Available! - sent
[17-Dec-2025 16:10:06 Europe/Berlin] Purchase confirmation email sent: SUCCESS for course 14 to user 45
[17-Dec-2025 16:10:06 Europe/Berlin] Email logged successfully: kendricknick56@gmail.com - 🎉 Course Sale: "Web development" - New Student Enrolled! - failed
[17-Dec-2025 16:10:07 Europe/Berlin] Email logged successfully: kendricknick56@gmail.com - 🎉 Course Sale: "Web development" - New Student Enrolled! - sent
[17-Dec-2025 16:10:07 Europe/Berlin] Email logged successfully: kendricknick56@gmail.com - 🎉 Course Sale: "Web development" - New Student Enrolled! - sent
[17-Dec-2025 16:10:07 Europe/Berlin] Teacher sale notification email sent: SUCCESS for course 14 to teacher
[17-Dec-2025 16:10:07 Europe/Berlin] Payment record SQL error: 
[17-Dec-2025 16:10:07 Europe/Berlin] TEACHER COMMISSION SUCCESS: Inserted R175 commission for teacher 44 from referral 36
[17-Dec-2025 16:10:07 Europe/Berlin] Cart referral rewards processed - 1 rewards given
[17-Dec-2025 16:10:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:10:11 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:10:11 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:10:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:10:18 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:10:18 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:10:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:10:23 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:10:23 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:10:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:10:26 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:10:26 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:10:26 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:10:26 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:10:26 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:10:26 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:10:26 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:10:26 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:10:26 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:10:26 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:10:26 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:10:26 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:10:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:10:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:10:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:10:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:10:26 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:10:26 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:10:26 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:10:26 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:10:26 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:10:26 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:10:27 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:10:27 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:10:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:10:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:10:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:10:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:10:27 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:15:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:15:03 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:15:03 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:15:03 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:15:03 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:15:03 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:15:03 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:15:03 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:15:03 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:15:03 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:15:03 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:15:03 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:15:03 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:15:03 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:15:03 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:15:03 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:15:03 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:15:03 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:15:03 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:15:03 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:15:03 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:15:03 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:15:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:15:04 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:15:04 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:15:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:15:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:15:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:15:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:15:05 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:15:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Database connected successfully to twpurnyc_panadite_DB
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Review submission script started
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Form data received | Data: {"user_id":45,"course_id":"akJKZEZteGNEVmFNSnZNcFdhV1g3Zz09","rating":"2","title_length":18,"text_length":73}
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Course ID decryption | Data: {"encrypted":"akJKZEZteGNEVmFNSnZNcFdhV1g3Zz09","decrypted":14,"is_numeric":true}
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Course ID decrypted | Data: 14
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT enrollment_id FROM enrollments WHERE student_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT enrollment_id FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT id FROM enrollments WHERE student_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT id FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Found enrollment with query: SELECT * FROM enrollments WHERE student_id = ? AND course_id = ? LIMIT 1
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT review_id FROM course_reviews WHERE user_id = ? AND course_id = ? - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'where clause'
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT * FROM course_reviews WHERE user_id = ? AND course_id = ? LIMIT 1 - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'where clause'
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Course reviews table ensured successfully
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Review inserted successfully with query: INSERT INTO course_reviews (student_id, course_id, rating, review_title, review_text, is_approved, created_at, updated_at) VALUES (?, ?, ?, ?, ?, 1, NOW(), NOW()) | Data: {"review_id":"9"}
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Review saved successfully | Data: {"review_id":"9"}
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT: Exception occurred | Data: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'"
[17-Dec-2025 15:15:39 UTC] 📝 REVIEW SUBMIT ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause' | File: /home/twpurnyc/public_html/student/submit_review.php | Line: 297
[17-Dec-2025 16:16:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:16:06 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:16:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:16:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:16:13 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:16:13 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:16:13 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:16:13 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:16:13 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:16:13 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:16:13 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:16:13 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:16:13 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:16:13 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:16:13 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:16:13 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:16:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:16:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:16:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:16:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:16:13 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:16:13 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:16:13 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:16:13 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:16:13 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:16:13 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:16:13 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:16:13 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:16:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:16:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:16:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:16:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:16:14 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:17:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:17:31 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:17:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:17:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:17:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:17:31 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:17:31 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:17:31 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:17:31 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:17:31 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:17:31 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:17:31 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:17:31 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:17:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:17:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:17:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:17:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:17:31 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:17:31 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:17:31 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:17:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 16:17:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:17:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:17:33 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:17:33 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:17:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:17:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:17:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:17:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:17:33 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:17:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:17:58 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:17:58 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:17:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:17:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:17:58 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:17:58 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:17:58 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:17:58 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:17:58 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:17:58 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:17:58 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:17:58 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:17:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:17:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:17:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:17:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:17:58 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:17:58 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:17:58 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:17:59 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 16:17:59 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:17:59 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:17:59 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:18:00 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:18:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:18:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:18:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:18:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:18:00 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:18:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:18:22 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:18:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:18:22 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:18:22 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:18:22 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:18:22 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:18:22 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:18:22 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:18:22 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:18:22 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:18:22 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:18:22 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:18:22 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:18:22 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:18:22 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:18:22 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:18:22 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:18:22 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:18:22 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:18:22 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:18:22 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:18:22 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:18:22 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:18:22 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:18:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:18:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:18:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:18:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:18:23 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:31:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:31:12 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:31:12 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:31:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:31:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:31:12 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:31:12 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:31:12 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:31:12 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:31:12 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:31:12 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:31:12 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:31:12 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:31:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:31:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:31:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:31:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:31:12 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:31:12 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:31:12 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:31:12 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:31:12 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:31:12 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:31:12 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:31:13 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:31:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:31:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:31:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:31:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:31:13 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:32:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:32:10 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:32:10 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:32:10 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:32:10 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:32:10 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:32:10 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:32:10 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:32:10 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:32:10 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:32:10 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:32:10 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:32:10 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:32:10 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:32:10 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:32:10 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:32:10 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:32:10 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:32:10 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:32:10 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:32:10 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:32:10 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:32:10 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:32:10 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:32:10 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:32:10 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:33:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:33:04 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:33:04 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:33:04 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:33:04 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:33:04 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:33:04 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:33:04 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:33:04 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:33:04 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:33:04 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:33:04 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:33:04 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:33:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:33:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:33:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:33:04 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:33:04 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:33:04 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:33:04 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:33:04 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:33:04 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:33:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:33:04 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:33:04 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:33:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:33:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:33:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:33:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:33:04 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:34:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:34:18 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:34:18 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:34:18 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:34:18 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:34:18 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:34:18 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:34:18 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:34:18 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:34:18 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:34:18 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:34:18 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:34:18 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:34:18 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:34:18 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:34:18 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:34:18 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:34:18 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:34:18 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:34:18 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:34:18 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:34:18 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:34:18 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:34:18 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:34:18 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:34:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:34:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:34:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:34:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:34:18 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:35:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:35:27 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:35:27 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:35:27 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:35:27 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:35:27 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:35:27 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:35:27 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:35:27 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:35:27 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:35:27 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:35:27 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:35:27 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:35:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:35:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:35:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:35:27 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:35:27 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:35:27 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:35:27 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:35:27 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:35:27 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:35:27 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:35:27 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:35:27 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:35:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:35:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:35:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:35:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:35:27 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:46:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:46:24 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:46:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:46:24 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:46:24 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:46:24 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:46:24 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:46:24 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:46:24 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:46:24 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:46:24 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:46:24 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:46:24 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:46:24 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:46:24 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:46:24 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:46:24 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:46:24 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:46:24 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:46:24 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:46:24 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 16:46:24 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:46:24 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:46:24 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:46:24 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:46:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:46:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:46:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:46:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:46:24 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:46:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:46:56 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:46:56 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:46:56 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:46:56 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:46:56 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:46:56 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:46:56 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:46:56 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:46:56 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:46:56 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:46:56 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:46:56 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:46:56 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:46:56 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:46:56 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:46:56 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:46:56 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:46:56 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:46:56 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:46:56 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:46:56 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:46:56 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:46:56 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:46:56 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:46:56 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:46:56 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:46:56 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:46:56 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:46:56 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:47:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:47:19 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:47:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:47:19 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:47:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:47:19 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:47:19 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:47:19 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:47:19 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:47:19 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:47:19 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:47:19 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:47:19 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:47:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:47:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:47:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:47:19 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:47:19 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:47:19 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:47:19 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:47:19 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:47:19 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:47:19 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:47:19 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:47:19 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:47:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:47:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:47:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:47:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:47:19 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:51:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:51:28 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:51:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:51:28 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:51:28 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:51:28 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:51:28 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:51:28 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:51:28 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:51:28 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:51:28 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:51:28 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:51:28 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:51:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:51:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:51:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:51:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:51:28 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:51:28 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:51:28 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:51:28 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:51:28 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:51:28 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:51:28 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:51:28 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:51:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:51:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:51:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:51:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:51:28 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 16:59:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 16:59:28 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 16:59:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 16:59:28 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 16:59:28 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 16:59:28 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 16:59:28 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 16:59:28 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 16:59:28 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 16:59:28 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 16:59:28 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 16:59:28 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 16:59:28 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 16:59:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:59:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 16:59:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 16:59:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 16:59:28 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 16:59:28 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 16:59:28 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 16:59:28 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 16:59:28 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 16:59:28 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 16:59:28 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:59:28 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 16:59:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:59:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:59:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 16:59:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 16:59:28 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:01:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:01:26 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:01:26 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:01:26 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:01:26 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:01:26 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:01:26 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:01:26 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:01:26 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:01:26 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:01:26 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:01:26 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:01:26 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:01:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:01:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:01:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:01:26 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:01:26 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:01:26 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:01:26 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:01:26 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 17:01:26 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:01:26 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:01:26 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:01:26 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:01:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:01:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:01:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:01:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:01:26 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:02:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:02:16 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:02:16 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:02:16 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:02:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:02:16 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:02:16 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:02:16 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:02:16 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:02:16 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:02:16 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:02:16 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:02:16 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:02:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:02:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:02:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:02:16 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:02:16 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:02:16 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:02:16 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:02:16 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 17:02:16 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:02:16 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:02:16 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:02:16 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:02:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:02:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:02:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:02:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:02:16 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:03:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:03:30 Europe/Berlin] [2025-12-17 17:03:30] UPDATE REVIEW: Update review script started
[17-Dec-2025 17:03:30 Europe/Berlin] [2025-12-17 17:03:30] UPDATE REVIEW: Received data - Data: {"review_id":9,"rating":"5","title":"thanks","text":"welcome  f fs fsd  fds sdf ds"}
[17-Dec-2025 17:03:30 Europe/Berlin] [2025-12-17 17:03:30] UPDATE REVIEW: Parsed input - Data: {"review_id":9,"rating":5,"title_length":6,"text_length":29}
[17-Dec-2025 17:03:30 Europe/Berlin] [2025-12-17 17:03:30] UPDATE REVIEW: User ID: 45
[17-Dec-2025 16:03:30 UTC] [2025-12-17 16:03:30] UPDATE REVIEW: Database connected via db_connect.php (converted from mysqli)
[17-Dec-2025 16:03:30 UTC] [2025-12-17 16:03:30] UPDATE REVIEW: Found existing review with query: SELECT review_id, student_id, course_id FROM course_reviews WHERE review_id = ? AND student_id = ? - Data: {"review_id":"9","student_id":"45","course_id":"14"}
[17-Dec-2025 16:03:30 UTC] [2025-12-17 16:03:30] UPDATE REVIEW: Review updated successfully with query: UPDATE course_reviews SET rating = ?, review_title = ?, review_text = ?, updated_at = NOW() WHERE review_id = ? AND student_id = ?
[17-Dec-2025 16:03:30 UTC] [2025-12-17 16:03:30] UPDATE REVIEW: Course rating update failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'
[17-Dec-2025 16:03:30 UTC] [2025-12-17 16:03:30] UPDATE REVIEW: Review update completed successfully
[17-Dec-2025 17:03:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:03:34 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:03:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:03:34 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:03:34 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:03:34 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:03:34 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:03:34 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:03:34 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:03:34 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:03:34 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:03:34 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:03:34 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:03:34 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:03:34 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:03:34 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:03:34 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:03:34 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:03:34 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:03:34 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:03:34 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 17:03:34 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:03:34 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:03:34 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:03:34 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:03:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:03:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:03:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:03:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:03:34 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:10:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:10:06 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:10:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:10:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:10:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:10:06 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:10:06 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:10:06 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:10:06 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:10:06 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:10:06 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:10:06 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:10:06 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:10:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:10:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:10:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:10:06 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:10:06 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:10:06 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:10:06 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:10:06 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 17:10:06 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:10:06 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:10:07 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:10:07 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:10:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:10:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:10:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:10:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:10:07 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:10:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:10:53 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:10:53 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:10:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:10:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:10:54 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:10:54 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:10:54 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:10:54 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:10:54 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:10:54 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:10:54 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:10:54 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:10:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:10:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:10:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:10:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:10:54 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:10:54 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:10:54 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:10:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[17-Dec-2025 17:10:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:10:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:10:54 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:10:54 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:10:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:10:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:10:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:10:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:10:54 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:14:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:14:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:15:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:15:12 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:15:12 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:15:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:15:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:15:12 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:15:12 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:15:12 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:15:12 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:15:12 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:15:12 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:15:12 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:15:12 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:15:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:15:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:15:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:15:12 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:15:12 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:15:12 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:15:12 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:15:12 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 17:15:12 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:15:12 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:15:12 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:15:12 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:15:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:15:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:15:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:15:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:15:12 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:16:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:16:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:16:36 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:16:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:16:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:16:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:16:36 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:16:36 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:16:36 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:16:36 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:16:36 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:16:36 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:16:36 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:16:36 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:16:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:16:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:16:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:16:36 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:16:36 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:16:36 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:16:36 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:16:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 17:16:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:16:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:16:36 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:16:36 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:16:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:16:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:16:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:16:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:16:36 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:17:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:17:46 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:17:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:17:46 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:17:46 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:17:46 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:17:46 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:17:46 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:17:46 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:17:46 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:17:46 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:17:46 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:17:46 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:17:46 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:17:46 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:17:46 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:17:46 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:17:46 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:17:46 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:17:46 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:17:46 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 17:17:46 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:17:46 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:17:46 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:17:46 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:17:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:17:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:17:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:17:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:17:46 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:17:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:17:54 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:17:54 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:17:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:17:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:17:54 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:17:54 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:17:54 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:17:54 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:17:54 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:17:54 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:17:54 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:17:54 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:17:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:17:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:17:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:17:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:17:54 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:17:54 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:17:54 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:17:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 17:17:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:17:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:17:54 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:17:54 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:17:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:17:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:17:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:17:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:17:54 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:18:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:18:24 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:18:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:18:24 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:18:24 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:18:24 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:18:24 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:18:24 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:18:24 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:18:24 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:18:24 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:18:24 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:18:24 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:18:24 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:18:24 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:18:24 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:18:24 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:18:24 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:18:24 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:18:24 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:18:24 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 17:18:24 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:18:24 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:18:24 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:18:24 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:18:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:18:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:18:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:18:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:18:24 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:19:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:20:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:20:02 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:20:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:20:02 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:20:02 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:20:02 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:20:02 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:20:02 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:20:02 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:20:02 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:20:02 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:20:02 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:20:02 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:20:02 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:20:02 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:20:02 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:20:02 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:20:03 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:20:03 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:20:03 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:20:03 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 17:20:03 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:20:03 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:20:04 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:20:04 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:20:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:20:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:20:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:20:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:20:04 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:28:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:28:48 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:28:48 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:28:48 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:28:48 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:28:48 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:28:48 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:28:48 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:28:48 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:28:48 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:28:48 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:28:48 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:28:48 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:28:48 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:28:48 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:28:48 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:28:48 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:28:48 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:28:48 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:28:48 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:28:48 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 17:28:48 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:28:48 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:28:48 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:28:48 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:28:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:28:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:28:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:28:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:28:48 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:42:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:42:07 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:42:07 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:44:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:44:27 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:44:27 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:48:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:48:28 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:48:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:48:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:48:31 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:48:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:52:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:52:00 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:52:00 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:55:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:55:48 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:55:48 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:57:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:57:08 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:57:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:58:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:58:37 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:58:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 17:58:37 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 17:58:37 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 17:58:37 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 17:58:37 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 17:58:37 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 17:58:37 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 17:58:37 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 17:58:37 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 17:58:37 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 17:58:37 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 17:58:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:58:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 17:58:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 17:58:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 17:58:37 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 17:58:37 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 17:58:37 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 17:58:37 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 17:58:37 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 17:58:37 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 17:58:37 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:58:37 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 17:58:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:58:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:58:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 17:58:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 17:58:37 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 17:58:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 17:58:50 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 17:58:50 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 18:04:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 18:04:17 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 18:04:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-17 15:16:19
    [created_at] => 1765980984
    [last_regeneration] => 1765980984
    [stored_redirect] => /student/course-detail.php?id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765980984
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 14
                    [title] => Web development
                    [price] => 3500.00
                    [thumbnail] => ../uploads/thumbnails/course_1765201158_6936d50639f3b.png
                    [description] => welcome
                    [first_name] => jas
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3500
)

[17-Dec-2025 18:04:17 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[17-Dec-2025 18:04:17 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[17-Dec-2025 18:04:17 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[17-Dec-2025 18:04:17 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[17-Dec-2025 18:04:17 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[17-Dec-2025 18:04:17 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[17-Dec-2025 18:04:17 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[17-Dec-2025 18:04:17 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[17-Dec-2025 18:04:17 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[17-Dec-2025 18:04:17 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[17-Dec-2025 18:04:17 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 18:04:17 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[17-Dec-2025 18:04:17 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[17-Dec-2025 18:04:17 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[17-Dec-2025 18:04:17 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[17-Dec-2025 18:04:17 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[17-Dec-2025 18:04:17 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[17-Dec-2025 18:04:18 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[17-Dec-2025 18:04:18 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[17-Dec-2025 18:04:18 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[17-Dec-2025 18:04:18 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 18:04:19 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[17-Dec-2025 18:04:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 18:04:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 18:04:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[17-Dec-2025 18:04:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[17-Dec-2025 18:04:20 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[17-Dec-2025 18:05:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 18:05:16 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 18:05:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1765991115
    [last_regeneration] => 1765991115
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765991115
    [session_started_at] => 2025-12-17 18:05:16
)

[17-Dec-2025 18:05:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 18:05:16 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 18:05:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1765991115
    [last_regeneration] => 1765991115
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765991115
    [session_started_at] => 2025-12-17 18:05:16
    [cart] => Array
        (
        )

)

[17-Dec-2025 18:14:01 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[17-Dec-2025 18:14:01 Europe/Berlin] Certificate Generation Error: Student not found
[17-Dec-2025 18:14:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Dec-2025 18:14:39 Europe/Berlin] isLoggedIn check result: true
[17-Dec-2025 18:14:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1765991115
    [last_regeneration] => 1765991115
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1765991115
    [session_started_at] => 2025-12-17 18:05:16
    [cart] => Array
        (
        )

)

[18-Dec-2025 05:51:02 Europe/Berlin] Error 8: Undefined index: email in /home/twpurnyc/public_html/student/certificates.php on line 2040
[18-Dec-2025 05:51:03 Europe/Berlin] Error 8: Undefined index: email in /home/twpurnyc/public_html/student/certificates.php on line 2056
[18-Dec-2025 05:51:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 05:51:14 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 05:51:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
)

[18-Dec-2025 05:51:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 05:51:20 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 05:51:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766033474
    [last_regeneration] => 1766033474
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
)

[18-Dec-2025 06:20:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 06:20:20 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 06:20:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 06:20:20
)

[18-Dec-2025 06:27:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 06:27:19 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 06:27:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 06:27:46 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[18-Dec-2025 06:27:46 Europe/Berlin] Certificate Generation Error: Student not found
[18-Dec-2025 06:44:50 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[18-Dec-2025 06:44:50 Europe/Berlin] Certificate Generation Error: Student not found
[18-Dec-2025 06:45:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 06:45:27 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 06:45:27 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 06:45:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 06:45:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 06:45:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 06:55:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 06:55:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 06:55:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 06:55:32 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:09:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:09:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:09:39 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:09:40 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:10:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:10:17 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:10:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:10:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:10:23 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:10:23 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:10:23 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:12:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:12:28 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:12:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:12:28 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:16:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:16:31 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:16:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:16:31 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:19:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:19:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:19:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:19:29 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:21:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:21:08 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:21:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:21:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:21:09 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:21:09 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:21:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:21:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:21:12 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:21:12 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:24:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:24:21 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:24:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:24:21 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:24:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:24:41 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:24:41 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:24:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:24:50 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:24:50 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:24:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:24:57 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:24:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:25:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:25:01 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:25:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:25:01 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 1, is_enrolled: YES
[18-Dec-2025 07:25:01 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 07:25:01 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 1
[18-Dec-2025 07:25:01 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 07:25:01 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 07:25:01 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 07:25:01 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 07:25:01 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 07:25:01 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 07:25:01 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 07:25:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 07:25:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 07:25:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 07:25:01 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 07:25:01 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 07:25:01 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 07:25:01 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 07:25:01 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 5
[18-Dec-2025 07:25:01 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [5,6]
[18-Dec-2025 07:25:01 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 07:25:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 07:25:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[18-Dec-2025 07:25:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 07:25:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[18-Dec-2025 07:25:01 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 07:25:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:25:08 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:25:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:25:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:25:14 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:25:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:25:14 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:25:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:25:24 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:25:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:25:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:25:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:25:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:25:32 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 07:25:32 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 07:25:32 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 07:25:32 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 07:25:32 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 07:25:32 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 07:25:32 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 07:25:32 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 07:25:32 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 07:25:32 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 07:25:32 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 07:25:32 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 07:25:32 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 07:25:32 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 07:25:32 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 07:25:32 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 07:25:32 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 07:25:32 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 07:25:32 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 07:25:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 07:25:32 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 07:25:32 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 07:25:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 07:25:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[18-Dec-2025 07:25:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 07:25:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[18-Dec-2025 07:25:32 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 07:25:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:25:47 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:25:47 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:25:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:25:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:25:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:25:51 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:25:59 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[18-Dec-2025 07:25:59 Europe/Berlin] Certificate Generation Error: Student not found
[18-Dec-2025 07:26:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:26:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:26:03 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:26:04 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:31:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:31:38 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:31:38 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 05:51:14
    [created_at] => 1766035638
    [last_regeneration] => 1766035638
    [stored_redirect] => /student/certificate.php?course_id=cTR5c2l6cGROaVQxdjlXUUpHdDB5dz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766035638
)

[18-Dec-2025 07:31:38 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:32:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:32:55 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 07:32:55 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 07:32:55
)

[18-Dec-2025 07:33:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:33:02 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:33:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:34:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:34:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:34:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:34:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:34:50 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:34:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:34:50 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 07:34:50 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 07:34:50 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 07:34:50 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 07:34:50 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 07:34:50 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 07:34:50 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 07:34:50 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 07:34:50 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 07:34:50 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 07:34:50 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 07:34:50 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 07:34:50 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 07:34:50 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 07:34:50 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 07:34:50 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 07:34:50 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 07:34:50 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 07:34:50 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 07:34:50 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 07:34:50 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 07:34:50 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 07:34:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 07:34:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[18-Dec-2025 07:34:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 07:34:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[18-Dec-2025 07:34:51 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 07:37:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:37:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:37:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:37:16 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:37:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:37:55 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:37:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:38:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:38:00 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:38:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:38:02 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 07:38:02 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 07:38:02 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 07:38:02 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 07:38:02 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 07:38:02 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 07:38:02 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 07:38:02 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 07:38:02 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 07:38:02 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 07:38:02 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 07:38:02 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 07:38:02 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 07:38:02 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 07:38:02 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 07:38:02 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 07:38:02 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 07:38:03 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 07:38:03 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 07:38:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 07:38:05 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 07:38:05 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 07:38:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 07:38:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[18-Dec-2025 07:38:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 07:38:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[18-Dec-2025 07:38:05 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 07:38:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:38:11 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:38:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:38:11 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:42:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:42:41 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:42:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:42:41 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:42:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:42:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:42:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:42:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:42:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:42:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:43:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:43:01 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:43:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:43:01 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:43:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:43:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:43:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:43:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:43:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:43:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:48:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:48:40 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:48:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:48:40 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:51:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:51:17 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:51:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:51:17 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:51:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:51:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:51:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:51:33 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 07:51:33 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 07:51:33 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 07:51:33 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 07:51:33 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 07:51:33 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 07:51:33 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 07:51:33 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 07:51:33 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 07:51:33 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 07:51:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 07:51:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 07:51:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 07:51:33 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 07:51:33 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 07:51:33 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 07:51:33 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 07:51:33 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 07:51:33 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 07:51:33 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 07:51:33 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 07:51:33 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 07:51:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 07:51:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[18-Dec-2025 07:51:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 07:51:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[18-Dec-2025 07:51:33 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 07:51:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:51:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:51:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:51:36 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:51:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:51:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:51:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:51:39 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:51:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:51:41 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:51:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:51:41 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:51:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:51:44 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:51:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:51:44 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:52:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:52:02 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:52:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:52:02 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 07:52:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:52:07 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:52:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 07:53:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 07:53:00 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 07:53:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 08:37:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 08:37:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 08:37:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 08:37:49 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 08:37:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 08:37:56 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 08:37:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 08:37:59 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[18-Dec-2025 08:37:59 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 08:37:59 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[18-Dec-2025 08:37:59 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 08:37:59 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 08:37:59 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 08:37:59 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 08:37:59 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 08:37:59 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 08:37:59 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 08:37:59 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 08:37:59 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 08:37:59 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 08:37:59 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 08:37:59 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 08:37:59 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 08:37:59 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 08:37:59 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[18-Dec-2025 08:37:59 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[18-Dec-2025 08:37:59 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 08:38:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 08:38:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[18-Dec-2025 08:38:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 08:38:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[18-Dec-2025 08:38:01 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 08:38:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 08:38:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 08:38:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 08:38:12 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 08:51:19 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[18-Dec-2025 08:51:19 Europe/Berlin] Certificate Generation Error: Student not found
[18-Dec-2025 08:53:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 08:53:29 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 08:53:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 08:53:29
)

[18-Dec-2025 08:55:27 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[18-Dec-2025 08:55:27 Europe/Berlin] Certificate Generation Error: Student not found
[18-Dec-2025 08:55:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 08:55:30 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 08:55:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 08:55:30 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 08:56:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 08:56:47 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 08:56:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 08:57:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 08:57:35 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 08:57:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:00:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:00:34 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:00:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:00:34 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 09:00:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:00:40 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:00:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:06:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:06:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:06:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:10:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:10:47 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:10:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:14:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:14:15 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:14:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:14:15 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:14:15 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:14:15 Europe/Berlin] Quiz Report Debug - Student ID: 45, Course ID: 14
[18-Dec-2025 09:14:15 Europe/Berlin] Quiz Report Result: Array
(
    [course_id] => 14
    [student_id] => 45
    [quiz_details] => Array
        (
            [0] => Array
                (
                    [quiz_id] => 21
                    [title] => Web development HTML
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [1] => Array
                (
                    [quiz_id] => 22
                    [title] => App development
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [2] => Array
                (
                    [quiz_id] => 23
                    [title] => Source code
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [3] => Array
                (
                    [quiz_id] => 24
                    [title] => Call center
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

        )

    [overall_stats] => Array
        (
            [total_quizzes] => 4
            [passed_quizzes] => 0
            [failed_quizzes] => 4
            [average_score] => 0
            [completion_percentage] => 0
        )

)

[18-Dec-2025 09:14:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:14:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:14:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:14:46 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:14:46 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:14:46 Europe/Berlin] Quiz Report Debug - Student ID: 45, Course ID: 14
[18-Dec-2025 09:14:46 Europe/Berlin] Quiz Report Result: Array
(
    [course_id] => 14
    [student_id] => 45
    [quiz_details] => Array
        (
            [0] => Array
                (
                    [quiz_id] => 21
                    [title] => Web development HTML
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [1] => Array
                (
                    [quiz_id] => 22
                    [title] => App development
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [2] => Array
                (
                    [quiz_id] => 23
                    [title] => Source code
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [3] => Array
                (
                    [quiz_id] => 24
                    [title] => Call center
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

        )

    [overall_stats] => Array
        (
            [total_quizzes] => 4
            [passed_quizzes] => 0
            [failed_quizzes] => 4
            [average_score] => 0
            [completion_percentage] => 0
        )

)

[18-Dec-2025 09:15:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:15:17 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:15:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:15:18 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:15:18 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:15:18 Europe/Berlin] Quiz Report Debug - Student ID: 45, Course ID: 14
[18-Dec-2025 09:15:18 Europe/Berlin] Quiz Report Result: Array
(
    [course_id] => 14
    [student_id] => 45
    [quiz_details] => Array
        (
            [0] => Array
                (
                    [quiz_id] => 21
                    [title] => Web development HTML
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [1] => Array
                (
                    [quiz_id] => 22
                    [title] => App development
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [2] => Array
                (
                    [quiz_id] => 23
                    [title] => Source code
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [3] => Array
                (
                    [quiz_id] => 24
                    [title] => Call center
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

        )

    [overall_stats] => Array
        (
            [total_quizzes] => 4
            [passed_quizzes] => 0
            [failed_quizzes] => 4
            [average_score] => 0
            [completion_percentage] => 0
        )

)

[18-Dec-2025 09:15:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:15:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:15:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:15:49 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:15:49 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:15:49 Europe/Berlin] Quiz Report Debug - Student ID: 45, Course ID: 14
[18-Dec-2025 09:15:49 Europe/Berlin] Quiz Report Result: Array
(
    [course_id] => 14
    [student_id] => 45
    [quiz_details] => Array
        (
            [0] => Array
                (
                    [quiz_id] => 21
                    [title] => Web development HTML
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [1] => Array
                (
                    [quiz_id] => 22
                    [title] => App development
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [2] => Array
                (
                    [quiz_id] => 23
                    [title] => Source code
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [3] => Array
                (
                    [quiz_id] => 24
                    [title] => Call center
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

        )

    [overall_stats] => Array
        (
            [total_quizzes] => 4
            [passed_quizzes] => 0
            [failed_quizzes] => 4
            [average_score] => 0
            [completion_percentage] => 0
        )

)

[18-Dec-2025 09:16:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:16:20 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:16:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:16:21 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:16:21 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:16:21 Europe/Berlin] Quiz Report Debug - Student ID: 45, Course ID: 14
[18-Dec-2025 09:16:21 Europe/Berlin] Quiz Report Result: Array
(
    [course_id] => 14
    [student_id] => 45
    [quiz_details] => Array
        (
            [0] => Array
                (
                    [quiz_id] => 21
                    [title] => Web development HTML
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [1] => Array
                (
                    [quiz_id] => 22
                    [title] => App development
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [2] => Array
                (
                    [quiz_id] => 23
                    [title] => Source code
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [3] => Array
                (
                    [quiz_id] => 24
                    [title] => Call center
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

        )

    [overall_stats] => Array
        (
            [total_quizzes] => 4
            [passed_quizzes] => 0
            [failed_quizzes] => 4
            [average_score] => 0
            [completion_percentage] => 0
        )

)

[18-Dec-2025 09:16:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:16:52 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:16:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:16:52 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:16:52 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:16:52 Europe/Berlin] Quiz Report Debug - Student ID: 45, Course ID: 14
[18-Dec-2025 09:16:52 Europe/Berlin] Quiz Report Result: Array
(
    [course_id] => 14
    [student_id] => 45
    [quiz_details] => Array
        (
            [0] => Array
                (
                    [quiz_id] => 21
                    [title] => Web development HTML
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [1] => Array
                (
                    [quiz_id] => 22
                    [title] => App development
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [2] => Array
                (
                    [quiz_id] => 23
                    [title] => Source code
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [3] => Array
                (
                    [quiz_id] => 24
                    [title] => Call center
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

        )

    [overall_stats] => Array
        (
            [total_quizzes] => 4
            [passed_quizzes] => 0
            [failed_quizzes] => 4
            [average_score] => 0
            [completion_percentage] => 0
        )

)

[18-Dec-2025 09:17:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:17:23 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:17:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:17:23 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:17:23 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:17:23 Europe/Berlin] Quiz Report Debug - Student ID: 45, Course ID: 14
[18-Dec-2025 09:17:23 Europe/Berlin] Quiz Report Result: Array
(
    [course_id] => 14
    [student_id] => 45
    [quiz_details] => Array
        (
            [0] => Array
                (
                    [quiz_id] => 21
                    [title] => Web development HTML
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [1] => Array
                (
                    [quiz_id] => 22
                    [title] => App development
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [2] => Array
                (
                    [quiz_id] => 23
                    [title] => Source code
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

            [3] => Array
                (
                    [quiz_id] => 24
                    [title] => Call center
                    [passing_score] => 50
                    [student_score] => 0
                    [status] => not_attempted
                    [attempt_date] => 
                    [attempt_number] => 
                )

        )

    [overall_stats] => Array
        (
            [total_quizzes] => 4
            [passed_quizzes] => 0
            [failed_quizzes] => 4
            [average_score] => 0
            [completion_percentage] => 0
        )

)

[18-Dec-2025 09:17:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:17:25 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:17:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:17:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:17:30 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:17:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:17:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:17:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:17:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:17:36 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 09:17:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:17:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:17:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:17:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:17:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:17:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:17:47 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 09:20:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:20:37 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:20:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:20:37 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 09:20:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:20:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:20:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:27:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:27:55 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:27:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:28:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:28:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:28:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:30:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:30:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:30:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:31:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:31:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:31:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:32:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:32:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:32:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:35:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:35:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:35:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:36:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:36:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:36:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:36:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:36:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:36:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:36:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[18-Dec-2025 09:36:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 09:36:51 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 18
[18-Dec-2025 09:36:51 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 09:36:51 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 09:36:51 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 09:36:51 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 09:36:51 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 09:36:51 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 09:36:51 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 09:36:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 09:36:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 09:36:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 09:36:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 09:36:51 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 09:36:51 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 09:36:51 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 09:36:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[18-Dec-2025 09:36:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[18-Dec-2025 09:36:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 09:36:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 09:36:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[18-Dec-2025 09:36:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 09:36:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1262
[18-Dec-2025 09:36:51 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 09:40:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:40:44 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:40:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:40:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:40:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:40:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:40:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:40:52 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:40:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:40:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 09:40:53 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 09:40:53 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 09:40:53 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 09:40:53 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 09:40:53 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 09:40:53 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 09:40:53 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 09:40:53 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 09:40:53 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 09:40:53 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 09:40:53 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 09:40:53 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 09:40:53 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 09:40:53 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 09:40:53 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 09:40:53 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 09:40:53 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 09:40:53 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 09:40:53 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 09:40:54 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:40:54 Europe/Berlin] Course query prepare failed: Unknown column 'c.course_title' in 'field list'
[18-Dec-2025 09:40:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 09:40:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[18-Dec-2025 09:40:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1163
[18-Dec-2025 09:40:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1424
[18-Dec-2025 09:40:54 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 09:48:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:48:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:48:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:48:29 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 09:48:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 09:48:29 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 09:48:29 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 09:48:29 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 09:48:29 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 09:48:29 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 09:48:29 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 09:48:29 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 09:48:29 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 09:48:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 09:48:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 09:48:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 09:48:29 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 09:48:29 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 09:48:29 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 09:48:29 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 09:48:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 09:48:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 09:48:29 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 09:48:29 Europe/Berlin] Error 8: Undefined variable: completed_videos in /home/twpurnyc/public_html/student/course-detail.php on line 926
[18-Dec-2025 09:48:29 Europe/Berlin] Error 8: Undefined variable: total_videos in /home/twpurnyc/public_html/student/course-detail.php on line 926
[18-Dec-2025 09:48:29 Europe/Berlin] Error 8: Undefined variable: passed_quizzes in /home/twpurnyc/public_html/student/course-detail.php on line 926
[18-Dec-2025 09:48:29 Europe/Berlin] Error 8: Undefined variable: total_quizzes in /home/twpurnyc/public_html/student/course-detail.php on line 926
[18-Dec-2025 09:48:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 1034
[18-Dec-2025 09:48:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1034
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1237
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1498
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1237
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1498
[18-Dec-2025 09:48:30 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2651
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2651
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2839
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2839
[18-Dec-2025 09:48:30 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2839
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2843
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2843
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2862
[18-Dec-2025 09:48:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2862
[18-Dec-2025 09:52:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:52:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:52:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:52:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 09:52:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 09:52:51 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 09:52:51 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 09:52:51 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 09:52:51 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 09:52:51 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 09:52:51 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 09:52:51 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 09:52:51 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 09:52:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 09:52:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 09:52:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 09:52:51 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 09:52:51 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 09:52:51 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 09:52:51 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 09:52:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 09:52:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 09:52:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: completed_videos in /home/twpurnyc/public_html/student/course-detail.php on line 926
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: total_videos in /home/twpurnyc/public_html/student/course-detail.php on line 926
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: passed_quizzes in /home/twpurnyc/public_html/student/course-detail.php on line 926
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: total_quizzes in /home/twpurnyc/public_html/student/course-detail.php on line 926
[18-Dec-2025 09:52:52 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 09:52:52 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 09:52:52 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 1040
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1040
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1243
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1504
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1243
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1504
[18-Dec-2025 09:52:52 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2657
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2657
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2845
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2845
[18-Dec-2025 09:52:52 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2845
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2849
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2849
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2868
[18-Dec-2025 09:52:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2868
[18-Dec-2025 09:57:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 09:57:54 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 09:57:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766039581
    [last_regeneration] => 1766039581
    [stored_redirect] => /student/debug_course_completion.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766039581
    [session_started_at] => 2025-12-18 07:33:02
)

[18-Dec-2025 09:57:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 09:57:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 09:57:54 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 09:57:54 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 09:57:54 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 09:57:54 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 09:57:54 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 09:57:54 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 09:57:54 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 09:57:54 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 09:57:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 09:57:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 09:57:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 09:57:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 09:57:54 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 09:57:54 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 09:57:54 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 09:57:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 09:57:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 09:57:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 09:57:54 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 09:57:54 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 09:57:54 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 1041
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1041
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1505
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1505
[18-Dec-2025 09:57:54 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2658
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2658
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2846
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2846
[18-Dec-2025 09:57:54 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2846
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2850
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2850
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2869
[18-Dec-2025 09:57:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2869
[18-Dec-2025 10:02:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:02:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:02:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048547
    [last_regeneration] => 1766048547
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048547
    [session_started_at] => 2025-12-18 10:02:32
)

[18-Dec-2025 10:02:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:02:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:02:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048547
    [last_regeneration] => 1766048547
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048547
    [session_started_at] => 2025-12-18 10:02:32
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:02:32 Europe/Berlin] Dashboard hours debug: User 41 has total hours: 50
[18-Dec-2025 10:02:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:02:55 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:02:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048547
    [last_regeneration] => 1766048547
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048547
    [session_started_at] => 2025-12-18 10:02:32
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:03:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:03:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:03:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048547
    [last_regeneration] => 1766048547
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048547
    [session_started_at] => 2025-12-18 10:02:32
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:03:13 Europe/Berlin] ACCREDITATION DEBUG - user_id: 41, course_id: 9, is_enrolled: YES
[18-Dec-2025 10:03:13 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:03:13 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 41, course_id: 9
[18-Dec-2025 10:03:13 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:03:13 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:03:13 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:03:13 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:03:13 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:03:13 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:03:13 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:03:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:03:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:03:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:03:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:03:13 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:03:13 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:03:13 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:03:13 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 1
[18-Dec-2025 10:03:13 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [1]
[18-Dec-2025 10:03:13 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[18-Dec-2025 10:03:13 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 9, User ID: 41
[18-Dec-2025 10:03:13 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 0, Completed Videos: 0
[18-Dec-2025 10:03:13 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 0, Passed Quizzes: 0
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 1041
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1041
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:13 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2658
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2658
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2846
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2846
[18-Dec-2025 10:03:13 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2846
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2850
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2850
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2869
[18-Dec-2025 10:03:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2869
[18-Dec-2025 10:03:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:03:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:03:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048547
    [last_regeneration] => 1766048547
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048547
    [session_started_at] => 2025-12-18 10:02:32
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:03:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:03:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:03:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048547
    [last_regeneration] => 1766048547
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048547
    [session_started_at] => 2025-12-18 10:02:32
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:03:43 Europe/Berlin] ACCREDITATION DEBUG - user_id: 41, course_id: 17, is_enrolled: YES
[18-Dec-2025 10:03:43 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:03:43 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 41, course_id: 17
[18-Dec-2025 10:03:43 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:03:43 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:03:43 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:03:43 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:03:43 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:03:43 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:03:43 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:03:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:03:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:03:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:03:43 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:03:43 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:03:43 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:03:43 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:03:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 32
[18-Dec-2025 10:03:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[18-Dec-2025 10:03:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[18-Dec-2025 10:03:44 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 17, User ID: 41
[18-Dec-2025 10:03:44 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 10, Completed Videos: 0
[18-Dec-2025 10:03:44 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 0, Passed Quizzes: 0
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 1041
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1041
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1244
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1343
[18-Dec-2025 10:03:44 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2658
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2658
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2846
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2846
[18-Dec-2025 10:03:44 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2846
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2850
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2850
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2869
[18-Dec-2025 10:03:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2869
[18-Dec-2025 10:06:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:06:41 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:06:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048547
    [last_regeneration] => 1766048547
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048547
    [session_started_at] => 2025-12-18 10:02:32
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:06:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 41, course_id: 17, is_enrolled: YES
[18-Dec-2025 10:06:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:06:42 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 41, course_id: 17
[18-Dec-2025 10:06:42 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:06:42 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:06:42 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:06:42 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:06:42 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:06:42 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:06:42 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:06:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:06:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:06:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:06:42 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:06:42 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:06:42 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:06:42 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:06:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 32
[18-Dec-2025 10:06:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[18-Dec-2025 10:06:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[18-Dec-2025 10:06:42 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 17, User ID: 41
[18-Dec-2025 10:06:42 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 10, Completed Videos: 0
[18-Dec-2025 10:06:42 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 0, Passed Quizzes: 0
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 1041
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1041
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1397
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1397
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1397
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1397
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1397
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1397
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1397
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1397
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1397
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1397
[18-Dec-2025 10:06:42 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2712
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2712
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2900
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2900
[18-Dec-2025 10:06:42 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2900
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2904
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2904
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2923
[18-Dec-2025 10:06:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2923
[18-Dec-2025 10:07:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:07:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:07:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048547
    [last_regeneration] => 1766048547
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048547
    [session_started_at] => 2025-12-18 10:02:32
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:07:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:07:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:07:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
)

[18-Dec-2025 10:07:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:07:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:07:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:07:49 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 10:07:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:07:53 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:07:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:07:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:07:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:07:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:07:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:07:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:07:58 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:07:58 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:07:58 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:07:58 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:07:58 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:07:58 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:07:58 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:07:58 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:07:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:07:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:07:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:07:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:07:58 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:07:58 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:07:58 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:07:58 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:07:58 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:07:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:07:58 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:07:58 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:07:58 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 1041
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1041
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1559
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1298
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1559
[18-Dec-2025 10:07:58 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2712
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2712
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2900
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2900
[18-Dec-2025 10:07:58 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2900
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2904
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2904
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2923
[18-Dec-2025 10:07:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2923
[18-Dec-2025 10:12:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:12:28 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:12:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:12:28 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:12:28 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:12:28 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:12:28 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:12:28 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:12:28 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:12:28 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:12:28 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:12:28 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:12:28 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:12:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:12:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:12:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:12:28 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:12:28 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:12:28 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:12:28 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:12:28 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:12:28 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:12:28 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:12:28 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:12:28 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:12:28 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:12:28 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:12:28 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:12:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:18:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:18:00 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:18:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:18:00 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:18:00 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:18:00 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:18:00 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:18:00 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:18:00 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:18:00 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:18:00 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:18:00 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:18:00 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:18:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:18:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:18:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:18:00 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:18:00 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:18:00 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:18:00 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:18:00 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:18:00 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:18:00 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:18:01 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:18:01 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:18:01 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:18:01 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:18:01 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:18:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:19:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:19:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:19:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:19:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:19:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:19:58 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:19:58 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:19:58 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:19:58 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:19:58 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:19:58 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:19:58 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:19:58 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:19:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:19:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:19:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:19:58 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:19:58 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:19:58 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:19:58 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:19:58 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:19:58 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:19:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:20:01 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:20:01 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:20:01 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:20:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:20:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:20:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:20:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:20:02 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:20:02 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:20:02 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:20:02 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:20:02 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:20:02 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:20:02 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:20:02 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:20:02 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:20:02 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:22:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:22:20 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:22:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:22:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:22:20 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:22:20 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:22:20 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:22:20 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:22:20 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:22:20 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:22:20 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:22:20 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:22:20 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:22:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:22:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:22:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:22:20 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:22:20 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:22:20 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:22:20 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:22:20 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:22:20 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:22:20 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:22:20 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:22:20 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:22:20 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:22:20 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:22:20 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:22:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:26:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:26:07 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:26:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:26:07 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:26:07 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:26:07 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:26:07 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:26:07 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:26:07 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:26:07 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:26:07 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:26:07 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:26:07 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:26:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:26:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:26:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:26:07 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:26:07 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:26:07 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:26:07 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:26:07 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:26:07 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:26:07 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:26:07 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:26:07 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:26:07 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:26:07 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:26:07 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:26:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:29:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:29:13 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:29:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:29:13 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:29:13 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:29:13 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:29:13 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:29:13 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:29:13 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:29:13 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:29:13 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:29:13 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:29:13 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:29:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:29:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:29:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:29:13 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:29:13 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:29:13 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:29:13 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:29:14 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:29:14 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:29:14 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:29:14 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:29:14 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:29:14 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:29:14 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:29:14 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:29:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:31:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:31:14 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:31:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:31:14 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:31:14 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:31:14 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:31:14 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:31:14 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:31:14 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:31:14 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:31:14 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:31:14 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:31:14 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:31:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:31:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:31:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:31:14 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:31:14 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:31:14 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:31:14 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:31:14 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:31:14 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:31:14 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:31:14 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:31:14 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:31:14 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:31:14 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:31:14 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:31:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:34:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:34:54 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:34:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:34:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:34:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:34:54 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:34:54 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:34:54 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:34:54 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:34:54 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:34:54 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:34:54 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:34:54 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:34:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:34:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:34:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:34:54 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:34:54 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:34:54 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:34:54 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:34:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:34:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:34:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:34:54 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:34:54 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:34:54 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:34:54 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:34:54 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:34:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:35:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:35:37 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:35:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:35:37 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:35:37 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:35:37 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:35:37 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:35:37 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:35:37 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:35:37 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:35:37 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:35:37 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:35:37 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:35:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:35:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:35:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:35:37 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:35:37 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:35:37 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:35:37 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:35:37 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:35:37 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:35:37 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:35:37 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:35:37 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:35:37 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:35:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:35:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:35:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:35:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:35:38 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:35:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:35:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:35:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:35:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:35:38 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:35:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:35:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:35:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:35:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:39:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:39:15 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:39:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:39:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:39:15 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:39:15 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:39:15 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:39:15 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:39:15 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:39:15 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:39:15 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:39:15 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:39:15 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:39:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:39:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:39:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:39:15 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:39:15 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:39:15 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:39:15 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:39:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:39:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:39:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:39:15 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:39:15 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:39:15 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:39:15 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:39:15 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:39:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:43:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 10:43:31 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 10:43:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766048867
    [last_regeneration] => 1766048867
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766048867
    [session_started_at] => 2025-12-18 10:07:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 10:43:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 10:43:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 10:43:31 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 10:43:31 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 10:43:31 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 10:43:31 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 10:43:31 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 10:43:31 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 10:43:31 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 10:43:31 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 10:43:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:43:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 10:43:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 10:43:31 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 10:43:31 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 10:43:31 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 10:43:31 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 10:43:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 10:43:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 10:43:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 10:43:31 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 10:43:31 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 10:43:31 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 10:43:31 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:43:31 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 10:43:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 12:07:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:07:25 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:07:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
)

[18-Dec-2025 12:07:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:07:25 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:07:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:07:26 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 12:07:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:07:30 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:07:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:07:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:07:35 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:07:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:07:35 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 12:07:35 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 12:07:35 Europe/Berlin] ACCREDITATION DEBUG - About to execute query with user_id: 45, course_id: 14
[18-Dec-2025 12:07:35 Europe/Berlin] ACCREDITATION DEBUG - Query execute result: SUCCESS
[18-Dec-2025 12:07:35 Europe/Berlin] ACCREDITATION DEBUG - Got result object: YES
[18-Dec-2025 12:07:35 Europe/Berlin] ACCREDITATION DEBUG - fetch_assoc returned: NULL
[18-Dec-2025 12:07:35 Europe/Berlin] ACCREDITATION DEBUG - Final result: NO REQUEST FOUND
[18-Dec-2025 12:07:35 Europe/Berlin] DOCUMENTS DEBUG - Accreditation request available: NO
[18-Dec-2025 12:07:35 Europe/Berlin] DOCUMENTS DEBUG - Table exists: YES
[18-Dec-2025 12:07:35 Europe/Berlin] DOCUMENTS DEBUG - Total documents in table: 4
[18-Dec-2025 12:07:35 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: assignment, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 12:07:35 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: cv, Name: Infinityregister (7).pdf
[18-Dec-2025 12:07:35 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: qualifications, Name: Real Estate System Quotation.pdf
[18-Dec-2025 12:07:35 Europe/Berlin] DOCUMENTS DEBUG - Found: Request ID 6, Type: id_document, Name: nXtABLED System Management, Updates, Enhancements, and Maintenance  - Webectak- quotation (1).pdf
[18-Dec-2025 12:07:35 Europe/Berlin] DOCUMENTS DEBUG - Documents for request ID 6: 4
[18-Dec-2025 12:07:35 Europe/Berlin] DOCUMENTS DEBUG - No documents found, trying direct query for request ID 6
[18-Dec-2025 12:07:35 Europe/Berlin] DOCUMENTS DEBUG - Direct query found: 4 documents
[18-Dec-2025 12:07:35 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 12:07:35 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 12:07:35 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 12:07:35 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 12:07:35 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 12:07:35 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1313
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1574
[18-Dec-2025 12:07:35 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2727
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 12:07:35 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2915
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2919
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 12:07:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2938
[18-Dec-2025 12:21:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:21:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:21:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:21:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 12:21:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 12:21:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 12:21:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 12:21:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 12:21:36 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 12:21:36 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 12:21:36 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1261
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1522
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1261
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1522
[18-Dec-2025 12:21:36 Europe/Berlin] EMERGENCY FIX: Forcing direct query for Request ID 6
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2675
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2675
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2863
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2863
[18-Dec-2025 12:21:36 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2863
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2867
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2867
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2886
[18-Dec-2025 12:21:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2886
[18-Dec-2025 12:30:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:30:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:30:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:30:32 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 12:30:32 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 12:30:32 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 12:30:32 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 12:30:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 12:30:32 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 12:30:32 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 12:30:32 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2541
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2541
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2729
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2729
[18-Dec-2025 12:30:32 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2729
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2733
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2733
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2752
[18-Dec-2025 12:30:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2752
[18-Dec-2025 12:39:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:52:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:52:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:52:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:52:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 12:52:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 12:52:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 12:52:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 12:52:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 12:52:36 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 12:52:36 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 12:52:36 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2541
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2541
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2729
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2729
[18-Dec-2025 12:52:36 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2729
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2733
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2733
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2752
[18-Dec-2025 12:52:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2752
[18-Dec-2025 12:55:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:55:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:55:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:55:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 12:55:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 12:55:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 12:55:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 12:55:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 12:55:42 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 12:55:42 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 12:55:42 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:55:42 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 12:55:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 12:57:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:57:47 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:57:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:57:47 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 12:57:47 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 12:57:47 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 12:57:47 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 12:57:47 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 12:57:47 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 12:57:47 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 12:57:47 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:57:47 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 12:57:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 12:58:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:58:35 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:58:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:58:35 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 12:58:35 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 12:58:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 12:58:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 12:58:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 12:58:36 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 12:58:36 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 12:58:36 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:58:36 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 12:58:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 12:58:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:58:48 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:58:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:58:48 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 12:58:48 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 12:58:49 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 12:58:49 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 12:58:49 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 12:58:49 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 12:58:49 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 12:58:49 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:58:49 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 12:58:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 12:58:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:58:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:58:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:59:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 12:59:11 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 12:59:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 12:59:11 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 12:59:11 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 12:59:12 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 12:59:12 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 12:59:12 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 12:59:13 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 12:59:13 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 12:59:13 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:59:13 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 12:59:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:00:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:00:28 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:00:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:00:29 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:00:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:00:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 13:00:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:00:29 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:00:30 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 13:00:30 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 13:00:30 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 13:00:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 13:00:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 13:00:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 13:00:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 13:00:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 13:00:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 13:00:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:00:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:00:31 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:00:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 13:00:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 13:00:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:00:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:02:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:02:14 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:02:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
)

[18-Dec-2025 13:02:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:02:14 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:02:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:02:14 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 13:02:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:02:19 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 13:02:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:02:19
)

[18-Dec-2025 13:02:50 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[18-Dec-2025 13:02:50 Europe/Berlin] Certificate Generation Error: Student not found
[18-Dec-2025 13:02:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:02:57 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:02:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:02:57 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 13:03:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:03:05 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:03:05 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:03:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:03:09 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 13:03:09 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:03:09
)

[18-Dec-2025 13:03:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:03:19 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:03:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:03:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:03:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:03:39 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:03:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:03:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:03:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:03:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:03:49 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 13:03:49 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:03:49
)

[18-Dec-2025 13:04:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:04:05 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:04:05 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:04:05 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:04:05 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:04:05 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 13:04:05 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:04:05 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:04:05 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 13:04:05 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 13:04:05 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:04:05 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:04:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:04:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:04:09 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 13:04:09 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:04:09
)

[18-Dec-2025 13:05:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:05:50 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:05:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:05:50 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:05:50 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:05:50 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 13:05:50 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:05:50 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:05:50 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 13:05:50 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 13:05:50 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 13:05:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 13:05:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 13:05:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 13:05:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 13:05:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 13:05:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 13:05:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:05:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:05:51 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:05:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 13:05:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 13:05:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:05:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:06:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:06:02 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:06:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:06:02 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:06:02 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:06:03 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 13:06:03 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:06:03 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:06:03 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 13:06:03 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 13:06:03 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:06:03 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:06:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:09:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:09:34 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:09:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:09:34 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:09:34 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:09:34 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 13:09:34 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:09:34 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:09:34 Europe/Berlin] COURSE DETAIL DEBUG - Course ID: 14, User ID: 45
[18-Dec-2025 13:09:34 Europe/Berlin] COURSE DETAIL DEBUG - Total Videos: 2, Completed Videos: 2
[18-Dec-2025 13:09:34 Europe/Berlin] COURSE DETAIL DEBUG - Total Quizzes: 4, Passed Quizzes: 0
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1252
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1513
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2526
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:09:34 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2714
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2718
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:09:34 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[18-Dec-2025 13:09:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:09:39 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 13:09:39 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:09:39
)

[18-Dec-2025 13:14:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:14:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:14:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:14:49 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:14:49 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:14:49 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 13:14:49 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:14:49 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1510
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1510
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2523
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2523
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2711
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2711
[18-Dec-2025 13:14:50 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2711
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2715
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2715
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2734
[18-Dec-2025 13:14:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2734
[18-Dec-2025 13:21:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:21:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:21:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:21:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:21:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:21:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 13:21:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:21:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:21:51 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:21:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:28:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:28:08 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:28:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:28:08 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:28:08 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:28:09 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 13:28:09 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:28:09 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:28:09 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:28:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:49:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:49:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:49:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:49:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:49:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:49:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 13:49:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:49:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:49:43 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:49:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:50:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:50:15 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:50:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:50:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:50:15 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:50:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 13:50:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:50:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:50:15 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:50:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:50:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:50:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:50:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:50:43 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:50:43 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:50:43 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 13:50:43 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:50:43 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:50:43 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:50:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:58:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 13:58:15 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 13:58:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 13:58:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 13:58:15 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 13:58:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 13:58:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 13:58:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:58:15 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 13:58:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 14:04:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 14:04:07 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 14:04:07 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 14:04:07 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 14:04:07 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 14:04:07 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 14:04:07 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 14:04:07 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 14:04:07 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 14:04:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 14:04:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 14:04:11 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 14:04:11 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 14:04:11
)

[18-Dec-2025 15:01:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:01:50 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:01:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:02:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:02:33 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:02:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:02:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:02:34 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:02:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:02:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:02:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:02:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:02:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:02:52 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:02:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:02:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:02:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:02:52 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:02:52 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:02:52 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 15:02:53 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 15:02:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 15:03:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:03:13 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:03:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:03:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:03:27 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:03:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:03:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:03:28 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:03:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:03:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:03:35 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:03:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:03:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:03:41 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:03:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:03:41 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:03:41 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:03:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:03:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:03:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 15:03:41 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 15:03:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 15:03:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:03:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:03:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:04:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:04:09 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:04:09 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:04:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:04:09 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:04:09 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:04:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:04:18 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:04:18 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:04:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:04:21 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:04:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:04:21 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:04:21 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:04:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:04:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:04:21 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 15:04:21 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2702
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2706
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 15:04:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[18-Dec-2025 15:05:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:05:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:05:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:05:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:05:20 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:05:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:05:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:05:20 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:05:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:05:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:05:26 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:05:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:05:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:05:30 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:05:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:05:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:05:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:05:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:05:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:05:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:05:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:05:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:05:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:05:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:05:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:05:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:05:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:05:41 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:05:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:05:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:05:53 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:05:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:05:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:05:54 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:05:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:05:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:05:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:05:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:06:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:06:00 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:06:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:06:00 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:06:00 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:06:00 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:06:00 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:06:00 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:06:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:06:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:06:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:06:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:06:00 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:06:00 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:06:20 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[18-Dec-2025 15:06:20 Europe/Berlin] Certificate Generation Error: Student not found
[18-Dec-2025 15:06:20 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[18-Dec-2025 15:06:20 Europe/Berlin] Certificate Generation Error: Student not found
[18-Dec-2025 15:06:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:06:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:06:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:06:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:06:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:06:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:06:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:06:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:06:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:06:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:06:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:06:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:06:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:06:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:06:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:06:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:06:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:24:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:24:08 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:24:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:24:08 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:24:08 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:24:08 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:24:08 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:24:08 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:24:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:24:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:24:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:24:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:24:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:24:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:32:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:32:07 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:32:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:32:07 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:32:07 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:32:07 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:32:07 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:32:07 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:32:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:32:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:32:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:32:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:32:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:32:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:34:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:34:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:34:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:34:46 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:34:46 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:34:46 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:34:46 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:34:46 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:34:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:34:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:34:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:34:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:34:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:34:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:35:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:35:22 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:35:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:35:22 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:35:22 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:35:22 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:35:22 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:35:22 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:35:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:35:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:35:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:35:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:35:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:35:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:38:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:38:34 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:38:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:38:34 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:38:34 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:38:34 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:38:34 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:38:34 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:38:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:38:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:38:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:38:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:38:34 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:38:34 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:39:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:39:14 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:39:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:39:14 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:39:14 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:39:14 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:39:14 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:39:14 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:39:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:39:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:39:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:39:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:39:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:39:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:39:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:39:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:39:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:39:29 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:39:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:39:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:39:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:39:29 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:39:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:39:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:39:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:39:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:39:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:39:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:46:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:46:13 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:46:13 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:46:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:46:18 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 15:46:18 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 15:46:18
)

[18-Dec-2025 15:46:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:46:18 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 15:46:18 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 15:46:18
)

[18-Dec-2025 15:46:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:46:23 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:46:23 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:46:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:46:31 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:46:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:46:31 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 15:46:49 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[18-Dec-2025 15:46:49 Europe/Berlin] Certificate Generation Error: Student not found
[18-Dec-2025 15:46:49 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[18-Dec-2025 15:46:49 Europe/Berlin] Certificate Generation Error: Student not found
[18-Dec-2025 15:47:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:47:01 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:47:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:47:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:47:02 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 15:47:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 15:47:02
)

[18-Dec-2025 15:47:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:47:02 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 15:47:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 15:47:02
)

[18-Dec-2025 15:47:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:47:04 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 15:47:04 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 15:47:04
)

[18-Dec-2025 15:48:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:48:25 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:48:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:48:25 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:48:25 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:48:25 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 15:48:25 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:48:25 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:48:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:48:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:48:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:48:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:48:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:48:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:49:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:49:21 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:49:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:49:21 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:49:21 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:49:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:49:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:49:21 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:49:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:49:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:49:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:49:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:49:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:49:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:57:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 15:57:59 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 15:57:59 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 15:57:59 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 15:57:59 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 15:57:59 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 15:57:59 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 15:57:59 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 15:57:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:57:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:57:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 15:57:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 15:57:59 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 15:57:59 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:01:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:01:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:01:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:01:39 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:01:39 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:01:39 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:01:39 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:01:39 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:01:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:01:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:01:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:01:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:02:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:02:41 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:02:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:02:41 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:02:41 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:02:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:02:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:02:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:02:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:02:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:02:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:02:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:03:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:03:33 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:03:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:03:33 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:03:33 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:03:33 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:03:33 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:03:33 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:03:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:03:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:03:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:03:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:06:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:06:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:06:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:06:45 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:06:45 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:06:45 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:06:45 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:06:45 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:06:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:06:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:06:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:06:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:07:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:07:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:07:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:07:39 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:07:39 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:07:39 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:07:39 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:07:39 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:07:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:07:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:07:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:07:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:09:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:09:15 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:09:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:09:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:09:21 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:09:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:09:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:09:30 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:09:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:09:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:09:33 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:09:33 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:09:33 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:09:33 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:09:33 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:09:33 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:09:33 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:09:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:09:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:09:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:09:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:11:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:11:33 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:11:33 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:11:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:11:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:11:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:11:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 18, is_enrolled: YES
[18-Dec-2025 16:11:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:11:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 43
[18-Dec-2025 16:11:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [43,44]
[18-Dec-2025 16:11:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:11:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:11:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1339
[18-Dec-2025 16:11:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:11:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:11:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:11:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:11:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:11:52 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 16:11:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 16:11:52
)

[18-Dec-2025 16:12:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:12:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:12:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:14:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:14:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:14:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:15:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:15:10 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:15:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:15:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:15:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:15:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:15:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:15:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:15:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:15:16 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:15:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:15:16 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:15:16 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:15:16 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:15:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:15:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:15:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:15:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:15:17 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:15:17 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:16:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:16:01 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:16:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:16:01 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_8_1766070924
)

[18-Dec-2025 16:16:01 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_8_1766070924
[18-Dec-2025 16:16:01 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 16:16:01 Europe/Berlin] ✅ Auto-verified payment: ACC_8_1766070924 for user 45
[18-Dec-2025 16:20:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:20:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:20:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:20:39 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_8_1766070924
)

[18-Dec-2025 16:20:39 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_8_1766070924
[18-Dec-2025 16:20:39 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 16:20:39 Europe/Berlin] Payment return - Payment ID: ACC_8_1766070924
[18-Dec-2025 16:20:39 Europe/Berlin] Query result: Found 1 rows for payment ACC_8_1766070924
[18-Dec-2025 16:20:39 Europe/Berlin] Found request ID: 8, Status: completed
[18-Dec-2025 16:24:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:24:21 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:24:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:25:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:25:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:25:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:25:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:25:54 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:25:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:25:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:25:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:25:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:25:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:25:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:25:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:25:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:25:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:25:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:30:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:30:00 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:30:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:30:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:30:06 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:30:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:30:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:30:08 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:30:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:30:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:30:13 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:30:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:30:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:30:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:30:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:30:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:30:25 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:30:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:30:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:30:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:30:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:30:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:30:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:30:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:31:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:31:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:31:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:31:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:31:05 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:31:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:37:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:37:22 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:37:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:37:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:37:24 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:37:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:37:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:37:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:37:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:37:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:37:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:37:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:37:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:37:37 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:37:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:37:37 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:37:37 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:37:37 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:37:37 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:37:37 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:37:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:37:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:37:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:37:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:37:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:37:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:37:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:37:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:37:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:37:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:37:54 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:37:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:37:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:37:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:37:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:37:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:37:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:37:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:37:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:37:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:37:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:37:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:37:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:38:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:38:30 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:38:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:38:30 Europe/Berlin] Error 2: require_once(../../auth/functions.php): failed to open stream: No such file or directory in /home/twpurnyc/public_html/student/api/submit_accreditation_request.php on line 7
[18-Dec-2025 16:38:30 Europe/Berlin] PHP Fatal error:  require_once(): Failed opening required '../../auth/functions.php' (include_path='C:\Users\user\Downloads\xamppfile\php\PEAR') in /home/twpurnyc/public_html/student/api/submit_accreditation_request.php on line 7
[18-Dec-2025 16:43:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:43:22 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:43:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766056044
    [last_regeneration] => 1766056044
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766056044
    [session_started_at] => 2025-12-18 12:07:25
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:43:22 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_9_1766072281
)

[18-Dec-2025 16:43:22 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_9_1766072281
[18-Dec-2025 16:43:22 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 16:43:22 Europe/Berlin] Payment return - Payment ID: ACC_9_1766072281
[18-Dec-2025 16:43:22 Europe/Berlin] Query result: Found 1 rows for payment ACC_9_1766072281
[18-Dec-2025 16:43:22 Europe/Berlin] Found request ID: 9, Status: pending
[18-Dec-2025 16:43:22 Europe/Berlin] ✅ Auto-verified payment: ACC_9_1766072281 for user 45
[18-Dec-2025 16:43:22 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000009 - failed
[18-Dec-2025 16:43:22 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000009 - sent
[18-Dec-2025 16:43:22 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000009 - sent
[18-Dec-2025 16:43:22 Europe/Berlin] ✅ Confirmation email sent for request ID: 9
[18-Dec-2025 16:43:22 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000009 - Action Required - failed
[18-Dec-2025 16:43:23 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000009 - Action Required - sent
[18-Dec-2025 16:43:23 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000009 - Action Required - sent
[18-Dec-2025 16:43:23 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000009 - Action Required - failed
[18-Dec-2025 16:43:23 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000009 - Action Required - sent
[18-Dec-2025 16:43:23 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000009 - Action Required - sent
[18-Dec-2025 16:43:23 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000009 - Action Required - failed
[18-Dec-2025 16:43:24 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000009 - Action Required - sent
[18-Dec-2025 16:43:24 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000009 - Action Required - sent
[18-Dec-2025 16:43:24 Europe/Berlin] ✅ Admin notification email sent for request ID: 9
[18-Dec-2025 16:46:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:46:08 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:46:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:46:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:46:09 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:46:09 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:46:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:46:31 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:46:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:46:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:46:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:46:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:46:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:46:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:46:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:46:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:46:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:46:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:54:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:54:06 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:54:06 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766072672
    [created_at] => 1766072672
    [last_regeneration] => 1766072672
    [session_started_at] => 2025-12-18 16:44:32
)

[18-Dec-2025 16:54:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:54:10 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:54:10 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766072672
    [created_at] => 1766072672
    [last_regeneration] => 1766072672
    [session_started_at] => 2025-12-18 16:44:32
)

[18-Dec-2025 16:54:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:54:22 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:54:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073261
    [last_regeneration] => 1766073261
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073261
    [session_started_at] => 2025-12-18 16:54:22
)

[18-Dec-2025 16:54:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:54:23 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:54:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073261
    [last_regeneration] => 1766073261
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073261
    [session_started_at] => 2025-12-18 16:54:22
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:54:23 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 16:54:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:54:38 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:54:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073261
    [last_regeneration] => 1766073261
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073261
    [session_started_at] => 2025-12-18 16:54:22
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:54:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:54:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:54:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073261
    [last_regeneration] => 1766073261
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073261
    [session_started_at] => 2025-12-18 16:54:22
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:54:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:54:48 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:54:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073261
    [last_regeneration] => 1766073261
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073261
    [session_started_at] => 2025-12-18 16:54:22
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:55:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:55:01 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:55:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073261
    [last_regeneration] => 1766073261
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073261
    [session_started_at] => 2025-12-18 16:54:22
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:55:01 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 16:55:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:55:04 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:55:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073261
    [last_regeneration] => 1766073261
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073261
    [session_started_at] => 2025-12-18 16:54:22
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:55:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:55:10 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:55:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073261
    [last_regeneration] => 1766073261
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073261
    [session_started_at] => 2025-12-18 16:54:22
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:55:10 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:55:11 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:55:11 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:55:11 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:55:11 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:55:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:55:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:55:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:55:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:55:11 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:55:11 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:55:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:55:59 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:55:59 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073261
    [last_regeneration] => 1766073261
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073261
    [session_started_at] => 2025-12-18 16:54:22
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:55:59 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 16:55:59 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 16:55:59 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 16:55:59 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 16:55:59 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 16:55:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:55:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:55:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 16:55:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 16:56:00 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:56:00 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 16:56:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 16:56:33 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 16:56:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073261
    [last_regeneration] => 1766073261
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073261
    [session_started_at] => 2025-12-18 16:54:22
    [cart] => Array
        (
        )

)

[18-Dec-2025 16:56:33 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_10_1766073365
)

[18-Dec-2025 16:56:33 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_10_1766073365
[18-Dec-2025 16:56:33 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 16:56:33 Europe/Berlin] Payment return - Payment ID: ACC_10_1766073365
[18-Dec-2025 16:56:33 Europe/Berlin] Query result: Found 1 rows for payment ACC_10_1766073365
[18-Dec-2025 16:56:33 Europe/Berlin] Found request ID: 10, Status: pending
[18-Dec-2025 16:56:33 Europe/Berlin] ✅ Auto-verified payment: ACC_10_1766073365 for user 45
[18-Dec-2025 16:56:33 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000010 - failed
[18-Dec-2025 16:56:34 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000010 - sent
[18-Dec-2025 16:56:34 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000010 - sent
[18-Dec-2025 16:56:34 Europe/Berlin] ✅ Confirmation email sent for request ID: 10
[18-Dec-2025 16:56:34 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000010 - Action Required - failed
[18-Dec-2025 16:56:34 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000010 - Action Required - sent
[18-Dec-2025 16:56:34 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000010 - Action Required - sent
[18-Dec-2025 16:56:34 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000010 - Action Required - failed
[18-Dec-2025 16:56:35 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000010 - Action Required - sent
[18-Dec-2025 16:56:35 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000010 - Action Required - sent
[18-Dec-2025 16:56:35 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000010 - Action Required - failed
[18-Dec-2025 16:56:35 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000010 - Action Required - sent
[18-Dec-2025 16:56:35 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000010 - Action Required - sent
[18-Dec-2025 16:56:35 Europe/Berlin] ✅ Admin notification email sent for request ID: 10
[18-Dec-2025 17:03:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:03:21 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:03:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
)

[18-Dec-2025 17:03:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:03:21 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:03:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:03:21 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 17:03:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:03:25 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:03:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:03:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:03:30 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:03:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:03:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:03:33 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:03:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:03:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:03:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:03:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:03:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:03:38 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:03:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:03:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:03:40 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:03:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:03:40 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 17:03:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:03:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:03:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:03:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:03:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:03:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:03:46 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 17:03:46 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 17:03:46 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 17:03:46 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 17:03:46 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 17:03:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:03:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:03:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:03:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:03:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 17:03:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 17:04:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:04:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:04:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073800
    [last_regeneration] => 1766073800
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073800
    [session_started_at] => 2025-12-18 17:03:21
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:04:16 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_11_1766073831
)

[18-Dec-2025 17:04:16 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_11_1766073831
[18-Dec-2025 17:04:16 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 17:04:16 Europe/Berlin] Payment return - Payment ID: ACC_11_1766073831
[18-Dec-2025 17:04:16 Europe/Berlin] Query result: Found 1 rows for payment ACC_11_1766073831
[18-Dec-2025 17:04:16 Europe/Berlin] Found request ID: 11, Status: pending
[18-Dec-2025 17:04:16 Europe/Berlin] ✅ Auto-verified payment: ACC_11_1766073831 for user 45
[18-Dec-2025 17:04:16 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000011 - failed
[18-Dec-2025 17:04:17 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000011 - sent
[18-Dec-2025 17:04:17 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000011 - sent
[18-Dec-2025 17:04:17 Europe/Berlin] ✅ Confirmation email sent for request ID: 11
[18-Dec-2025 17:04:17 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000011 - Action Required - failed
[18-Dec-2025 17:04:18 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000011 - Action Required - sent
[18-Dec-2025 17:04:18 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000011 - Action Required - sent
[18-Dec-2025 17:04:18 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000011 - Action Required - failed
[18-Dec-2025 17:04:19 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000011 - Action Required - sent
[18-Dec-2025 17:04:19 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000011 - Action Required - sent
[18-Dec-2025 17:04:19 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000011 - Action Required - failed
[18-Dec-2025 17:04:19 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000011 - Action Required - sent
[18-Dec-2025 17:04:19 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000011 - Action Required - sent
[18-Dec-2025 17:04:19 Europe/Berlin] ✅ Admin notification email sent for request ID: 11
[18-Dec-2025 17:05:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:05:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:05:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:05:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:05:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:05:43 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 13:01:58
    [created_at] => 1766059332
    [last_regeneration] => 1766059332
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766059332
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:06:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:06:10 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:06:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073969
    [last_regeneration] => 1766073969
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073969
    [session_started_at] => 2025-12-18 17:06:10
)

[18-Dec-2025 17:06:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:06:10 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:06:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073969
    [last_regeneration] => 1766073969
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073969
    [session_started_at] => 2025-12-18 17:06:10
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:06:10 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 17:06:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:06:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:06:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073969
    [last_regeneration] => 1766073969
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073969
    [session_started_at] => 2025-12-18 17:06:10
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:06:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:06:17 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:06:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073969
    [last_regeneration] => 1766073969
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073969
    [session_started_at] => 2025-12-18 17:06:10
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:06:17 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 17:06:17 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 17:06:17 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 17:06:17 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 17:06:17 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 17:06:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:06:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:06:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:06:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:06:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:06:31 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:06:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073969
    [last_regeneration] => 1766073969
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073969
    [session_started_at] => 2025-12-18 17:06:10
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:06:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:06:54 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:06:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073969
    [last_regeneration] => 1766073969
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073969
    [session_started_at] => 2025-12-18 17:06:10
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:07:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:07:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:07:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073969
    [last_regeneration] => 1766073969
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073969
    [session_started_at] => 2025-12-18 17:06:10
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:14:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:14:17 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:14:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073969
    [last_regeneration] => 1766073969
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073969
    [session_started_at] => 2025-12-18 17:06:10
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:14:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:14:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:14:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766073969
    [last_regeneration] => 1766073969
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766073969
    [session_started_at] => 2025-12-18 17:06:10
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:21:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:21:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:21:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766074863
    [last_regeneration] => 1766074863
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766074863
    [session_started_at] => 2025-12-18 17:21:03
)

[18-Dec-2025 17:21:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:21:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:21:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766074863
    [last_regeneration] => 1766074863
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766074863
    [session_started_at] => 2025-12-18 17:21:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:21:04 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 17:21:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:21:08 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:21:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1766074863
    [last_regeneration] => 1766074863
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766074863
    [session_started_at] => 2025-12-18 17:21:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:22:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:22:30 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:22:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766074863
    [last_regeneration] => 1766074863
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766074863
    [session_started_at] => 2025-12-18 17:21:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:22:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:22:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:22:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766074863
    [last_regeneration] => 1766074863
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766074863
    [session_started_at] => 2025-12-18 17:21:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:22:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:22:38 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:22:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766074863
    [last_regeneration] => 1766074863
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766074863
    [session_started_at] => 2025-12-18 17:21:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:22:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:22:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:22:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766074863
    [last_regeneration] => 1766074863
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766074863
    [session_started_at] => 2025-12-18 17:21:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:22:46 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 17:24:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:24:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:24:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766074863
    [last_regeneration] => 1766074863
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766074863
    [session_started_at] => 2025-12-18 17:21:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:24:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:24:20 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:24:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766074863
    [last_regeneration] => 1766074863
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766074863
    [session_started_at] => 2025-12-18 17:21:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:24:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 17:24:20 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 17:24:20 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 17:24:20 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 17:24:20 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 17:24:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:24:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:24:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:24:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:24:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 17:24:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 17:24:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:24:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:24:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766074863
    [last_regeneration] => 1766074863
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766074863
    [session_started_at] => 2025-12-18 17:21:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:24:51 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_12_1766075066
)

[18-Dec-2025 17:24:51 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_12_1766075066
[18-Dec-2025 17:24:51 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 17:24:51 Europe/Berlin] Payment return - Payment ID: ACC_12_1766075066
[18-Dec-2025 17:24:51 Europe/Berlin] Query result: Found 1 rows for payment ACC_12_1766075066
[18-Dec-2025 17:24:51 Europe/Berlin] Found request ID: 12, Status: pending
[18-Dec-2025 17:24:51 Europe/Berlin] ✅ Auto-verified payment: ACC_12_1766075066 for user 45
[18-Dec-2025 17:24:51 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000012 - failed
[18-Dec-2025 17:24:52 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000012 - sent
[18-Dec-2025 17:24:52 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000012 - sent
[18-Dec-2025 17:24:52 Europe/Berlin] ✅ Confirmation email sent for request ID: 12
[18-Dec-2025 17:24:52 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000012 - Action Required - failed
[18-Dec-2025 17:24:52 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000012 - Action Required - sent
[18-Dec-2025 17:24:52 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000012 - Action Required - sent
[18-Dec-2025 17:24:52 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000012 - Action Required - failed
[18-Dec-2025 17:24:52 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000012 - Action Required - sent
[18-Dec-2025 17:24:52 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000012 - Action Required - sent
[18-Dec-2025 17:24:52 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000012 - Action Required - failed
[18-Dec-2025 17:24:53 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000012 - Action Required - sent
[18-Dec-2025 17:24:53 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000012 - Action Required - sent
[18-Dec-2025 17:24:53 Europe/Berlin] ✅ Admin notification email sent for request ID: 12
[18-Dec-2025 17:26:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:26:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:26:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
)

[18-Dec-2025 17:26:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:26:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:26:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:26:03 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 17:26:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:26:05 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:26:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:26:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:26:10 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:26:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:26:10 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 17:26:10 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 17:26:10 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 17:26:10 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 17:26:10 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 17:26:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:26:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:26:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:26:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:26:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:26:17 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:26:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:26:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:26:22 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:26:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:26:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:26:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:26:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:29:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:29:57 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:29:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:30:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:30:06 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:30:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:30:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:30:08 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:30:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:30:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:30:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:30:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:30:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:30:17 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:30:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:30:17 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 17:30:17 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 17:30:17 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 17:30:17 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 17:30:17 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 17:30:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:30:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:30:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:30:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:30:17 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 17:30:17 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 17:31:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:31:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:31:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075162
    [last_regeneration] => 1766075162
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075162
    [session_started_at] => 2025-12-18 17:26:03
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:31:32 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_13_1766075469
)

[18-Dec-2025 17:31:32 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_13_1766075469
[18-Dec-2025 17:31:32 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 17:31:32 Europe/Berlin] Payment return - Payment ID: ACC_13_1766075469
[18-Dec-2025 17:31:32 Europe/Berlin] Query result: Found 1 rows for payment ACC_13_1766075469
[18-Dec-2025 17:31:32 Europe/Berlin] Found request ID: 13, Status: pending
[18-Dec-2025 17:31:32 Europe/Berlin] ✅ Auto-verified payment: ACC_13_1766075469 for user 45
[18-Dec-2025 17:31:32 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000013 - failed
[18-Dec-2025 17:31:33 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000013 - sent
[18-Dec-2025 17:31:33 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000013 - sent
[18-Dec-2025 17:31:33 Europe/Berlin] ✅ Confirmation email sent for request ID: 13
[18-Dec-2025 17:31:33 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000013 - Action Required - failed
[18-Dec-2025 17:31:33 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000013 - Action Required - sent
[18-Dec-2025 17:31:33 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000013 - Action Required - sent
[18-Dec-2025 17:31:33 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000013 - Action Required - failed
[18-Dec-2025 17:31:34 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000013 - Action Required - sent
[18-Dec-2025 17:31:34 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000013 - Action Required - sent
[18-Dec-2025 17:31:34 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000013 - Action Required - failed
[18-Dec-2025 17:31:34 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000013 - Action Required - sent
[18-Dec-2025 17:31:34 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000013 - Action Required - sent
[18-Dec-2025 17:31:34 Europe/Berlin] ✅ Admin notification email sent for request ID: 13
[18-Dec-2025 17:32:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:32:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:32:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
)

[18-Dec-2025 17:32:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:32:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:32:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:32:36 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 17:32:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:32:38 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:32:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:32:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:32:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:32:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:32:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 17:32:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 17:32:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 17:32:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 17:32:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 17:32:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:32:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:32:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:32:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:32:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:32:47 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:32:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:32:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:32:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:32:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:33:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:33:28 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:33:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:38:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:38:17 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 17:38:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 17:38:17
)

[18-Dec-2025 17:38:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:38:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:38:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:38:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:38:34 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:38:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:39:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:39:55 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:39:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:44:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:44:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:44:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:44:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:44:50 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:44:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:44:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:44:53 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:44:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:44:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:44:55 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:44:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:44:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:44:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:44:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:45:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:45:02 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:45:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:45:02 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 17:45:02 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 17:45:02 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 17:45:02 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 17:45:02 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 17:45:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:45:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:45:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:45:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:45:02 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 17:45:02 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 17:45:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:45:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:45:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766075555
    [last_regeneration] => 1766075555
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766075555
    [session_started_at] => 2025-12-18 17:32:36
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:45:45 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_14_1766076311
)

[18-Dec-2025 17:45:45 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_14_1766076311
[18-Dec-2025 17:45:45 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 17:45:45 Europe/Berlin] Payment return - Payment ID: ACC_14_1766076311
[18-Dec-2025 17:45:45 Europe/Berlin] Query result: Found 1 rows for payment ACC_14_1766076311
[18-Dec-2025 17:45:45 Europe/Berlin] Found request ID: 14, Status: pending
[18-Dec-2025 17:45:45 Europe/Berlin] ✅ Auto-verified payment: ACC_14_1766076311 for user 45
[18-Dec-2025 17:45:45 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000014 - failed
[18-Dec-2025 17:45:46 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000014 - sent
[18-Dec-2025 17:45:46 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000014 - sent
[18-Dec-2025 17:45:46 Europe/Berlin] ✅ Confirmation email sent for request ID: 14
[18-Dec-2025 17:45:46 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000014 - Action Required - failed
[18-Dec-2025 17:45:46 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000014 - Action Required - sent
[18-Dec-2025 17:45:46 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000014 - Action Required - sent
[18-Dec-2025 17:45:47 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000014 - Action Required - failed
[18-Dec-2025 17:45:47 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000014 - Action Required - sent
[18-Dec-2025 17:45:47 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000014 - Action Required - sent
[18-Dec-2025 17:45:47 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000014 - Action Required - failed
[18-Dec-2025 17:45:48 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000014 - Action Required - sent
[18-Dec-2025 17:45:49 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000014 - Action Required - sent
[18-Dec-2025 17:45:49 Europe/Berlin] ✅ Admin notification email sent for request ID: 14
[18-Dec-2025 17:46:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:46:55 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:46:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
)

[18-Dec-2025 17:46:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:46:55 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:46:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:46:56 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 17:46:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:46:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:46:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:47:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:47:02 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:47:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:47:02 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 17:47:02 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 17:47:02 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 17:47:02 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 17:47:02 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 17:47:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:47:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:47:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:47:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:47:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:47:09 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:47:09 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:47:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:47:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:47:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:47:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:47:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:47:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:48:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:48:57 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:48:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:48:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:48:57 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:48:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:49:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:49:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:49:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:49:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:49:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:49:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:49:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:49:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:49:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:49:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:49:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:49:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:49:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:49:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:49:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:49:45 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 17:49:45 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 17:49:45 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 17:49:45 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 17:49:45 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 17:49:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:49:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:49:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 17:49:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 17:49:45 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 17:49:45 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 17:50:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:50:18 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:50:18 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076414
    [last_regeneration] => 1766076414
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076414
    [session_started_at] => 2025-12-18 17:46:55
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:50:18 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_15_1766076591
)

[18-Dec-2025 17:50:18 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_15_1766076591
[18-Dec-2025 17:50:18 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 17:50:18 Europe/Berlin] Payment return - Payment ID: ACC_15_1766076591
[18-Dec-2025 17:50:18 Europe/Berlin] Query result: Found 1 rows for payment ACC_15_1766076591
[18-Dec-2025 17:50:18 Europe/Berlin] Found request ID: 15, Status: pending
[18-Dec-2025 17:50:18 Europe/Berlin] ✅ Auto-verified payment: ACC_15_1766076591 for user 45
[18-Dec-2025 17:50:18 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000015 - failed
[18-Dec-2025 17:50:18 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000015 - sent
[18-Dec-2025 17:50:18 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000015 - sent
[18-Dec-2025 17:50:18 Europe/Berlin] ✅ Confirmation email sent for request ID: 15
[18-Dec-2025 17:50:18 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000015 - Action Required - failed
[18-Dec-2025 17:50:19 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000015 - Action Required - sent
[18-Dec-2025 17:50:19 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000015 - Action Required - sent
[18-Dec-2025 17:50:19 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000015 - Action Required - failed
[18-Dec-2025 17:50:19 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000015 - Action Required - sent
[18-Dec-2025 17:50:19 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000015 - Action Required - sent
[18-Dec-2025 17:50:19 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000015 - Action Required - failed
[18-Dec-2025 17:50:20 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000015 - Action Required - sent
[18-Dec-2025 17:50:20 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000015 - Action Required - sent
[18-Dec-2025 17:50:20 Europe/Berlin] ✅ Admin notification email sent for request ID: 15
[18-Dec-2025 17:51:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:51:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:51:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
)

[18-Dec-2025 17:51:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:51:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:51:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:51:47 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 17:52:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:52:02 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:52:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:52:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:52:02 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:52:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:52:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:52:14 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:52:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:52:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:52:15 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:52:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:52:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:52:48 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:52:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:52:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:52:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:52:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:54:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:54:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:54:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:56:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:56:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:56:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:56:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:56:40 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:56:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 17:59:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 17:59:28 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 17:59:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:01:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:01:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:01:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:01:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:01:59 Europe/Berlin] isLoggedIn check result: false
[18-Dec-2025 18:01:59 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-18 18:01:59
)

[18-Dec-2025 18:02:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:02:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:02:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:02:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:02:13 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:02:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:02:13 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 18:02:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:02:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:02:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:04:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:04:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:04:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:06:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:06:53 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:06:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:11:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:11:30 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:11:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:13:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:13:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:13:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:13:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:13:56 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:13:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:13:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:13:59 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:13:59 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:14:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:14:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:14:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:14:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:14:09 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:14:09 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:14:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:14:09 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:14:09 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:14:09 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 18:14:09 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 18:14:09 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 18:14:09 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 18:14:09 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 18:14:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:14:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:14:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:14:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:14:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 18:14:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 18:14:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:14:44 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:14:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766076705
    [last_regeneration] => 1766076705
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766076705
    [session_started_at] => 2025-12-18 17:51:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:14:44 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_16_1766078056
)

[18-Dec-2025 18:14:44 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_16_1766078056
[18-Dec-2025 18:14:44 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 18:14:44 Europe/Berlin] Payment return - Payment ID: ACC_16_1766078056
[18-Dec-2025 18:14:44 Europe/Berlin] Query result: Found 1 rows for payment ACC_16_1766078056
[18-Dec-2025 18:14:44 Europe/Berlin] Found request ID: 16, Status: pending
[18-Dec-2025 18:14:44 Europe/Berlin] ✅ Auto-verified payment: ACC_16_1766078056 for user 45
[18-Dec-2025 18:14:44 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000016 - failed
[18-Dec-2025 18:14:45 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000016 - sent
[18-Dec-2025 18:14:45 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000016 - sent
[18-Dec-2025 18:14:45 Europe/Berlin] ✅ Confirmation email sent for request ID: 16
[18-Dec-2025 18:14:45 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000016 - Action Required - failed
[18-Dec-2025 18:14:45 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000016 - Action Required - sent
[18-Dec-2025 18:14:45 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000016 - Action Required - sent
[18-Dec-2025 18:14:45 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000016 - Action Required - failed
[18-Dec-2025 18:14:46 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000016 - Action Required - sent
[18-Dec-2025 18:14:46 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000016 - Action Required - sent
[18-Dec-2025 18:14:46 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000016 - Action Required - failed
[18-Dec-2025 18:14:46 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000016 - Action Required - sent
[18-Dec-2025 18:14:47 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000016 - Action Required - sent
[18-Dec-2025 18:14:47 Europe/Berlin] ✅ Admin notification email sent for request ID: 16
[18-Dec-2025 18:15:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:15:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:15:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
)

[18-Dec-2025 18:15:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:15:50 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:15:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:15:50 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 18:15:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:15:52 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:15:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:15:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:15:56 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:15:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:15:56 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 18:15:56 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 18:15:56 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 18:15:56 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 18:15:56 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 18:15:56 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:15:56 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:15:56 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:15:56 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:16:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:16:02 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:16:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:16:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:16:06 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:16:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:16:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:16:44 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:16:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:17:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:17:40 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:17:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:18:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:18:44 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:18:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:19:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:19:00 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:19:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:19:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:19:02 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:19:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:19:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:19:07 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:19:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:19:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:19:10 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:19:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:19:10 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 18:19:10 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 18:19:10 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 18:19:10 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 18:19:10 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 18:19:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:19:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:19:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:19:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:19:10 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 18:19:10 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 18:19:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:19:40 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:19:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078149
    [last_regeneration] => 1766078149
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078149
    [session_started_at] => 2025-12-18 18:15:49
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:19:40 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_17_1766078357
)

[18-Dec-2025 18:19:40 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_17_1766078357
[18-Dec-2025 18:19:40 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 18:19:40 Europe/Berlin] Payment return - Payment ID: ACC_17_1766078357
[18-Dec-2025 18:19:40 Europe/Berlin] Query result: Found 1 rows for payment ACC_17_1766078357
[18-Dec-2025 18:19:40 Europe/Berlin] Found request ID: 17, Status: pending
[18-Dec-2025 18:19:40 Europe/Berlin] ✅ Auto-verified payment: ACC_17_1766078357 for user 45
[18-Dec-2025 18:19:40 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000017 - failed
[18-Dec-2025 18:19:41 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000017 - sent
[18-Dec-2025 18:19:41 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000017 - sent
[18-Dec-2025 18:19:41 Europe/Berlin] ✅ Confirmation email sent for request ID: 17
[18-Dec-2025 18:19:41 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000017 - Action Required - failed
[18-Dec-2025 18:19:41 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000017 - Action Required - sent
[18-Dec-2025 18:19:41 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000017 - Action Required - sent
[18-Dec-2025 18:19:41 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000017 - Action Required - failed
[18-Dec-2025 18:19:42 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000017 - Action Required - sent
[18-Dec-2025 18:19:42 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000017 - Action Required - sent
[18-Dec-2025 18:19:42 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000017 - Action Required - failed
[18-Dec-2025 18:19:42 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000017 - Action Required - sent
[18-Dec-2025 18:19:42 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000017 - Action Required - sent
[18-Dec-2025 18:19:42 Europe/Berlin] ✅ Admin notification email sent for request ID: 17
[18-Dec-2025 18:20:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:20:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:20:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
)

[18-Dec-2025 18:20:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:20:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:20:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:20:46 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 18:20:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:20:48 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:20:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:20:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:20:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:20:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:20:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 18:20:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 18:20:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 18:20:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 18:20:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 18:20:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:20:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:20:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:20:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:20:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:20:57 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:20:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:21:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:21:01 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:21:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:24:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:24:06 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:24:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:24:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:24:10 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:24:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:24:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:24:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:24:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:24:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:24:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:24:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:24:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:24:26 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:24:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:24:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:24:28 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:24:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:24:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:24:28 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:24:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:24:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:24:34 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:24:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:24:35 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 18:24:35 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 18:24:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 18:24:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 18:24:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 18:24:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:24:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:24:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:24:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:24:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 18:24:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2514
[18-Dec-2025 18:26:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:26:40 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:26:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:27:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:27:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:27:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078445
    [last_regeneration] => 1766078445
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078445
    [session_started_at] => 2025-12-18 18:20:46
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:27:29 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_18_1766078823
)

[18-Dec-2025 18:27:29 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_18_1766078823
[18-Dec-2025 18:27:29 Europe/Berlin] PayFast Return Debug - User ID: 45
[18-Dec-2025 18:27:29 Europe/Berlin] Payment return - Payment ID: ACC_18_1766078823
[18-Dec-2025 18:27:29 Europe/Berlin] Query result: Found 1 rows for payment ACC_18_1766078823
[18-Dec-2025 18:27:29 Europe/Berlin] Found request ID: 18, Status: pending
[18-Dec-2025 18:27:29 Europe/Berlin] ✅ Auto-verified payment: ACC_18_1766078823 for user 45
[18-Dec-2025 18:27:29 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000018 - failed
[18-Dec-2025 18:27:30 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000018 - sent
[18-Dec-2025 18:27:30 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000018 - sent
[18-Dec-2025 18:27:30 Europe/Berlin] ✅ Confirmation email sent for request ID: 18
[18-Dec-2025 18:27:30 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000018 - Action Required - failed
[18-Dec-2025 18:27:30 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000018 - Action Required - sent
[18-Dec-2025 18:27:30 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000018 - Action Required - sent
[18-Dec-2025 18:27:30 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000018 - Action Required - failed
[18-Dec-2025 18:27:30 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000018 - Action Required - sent
[18-Dec-2025 18:27:30 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000018 - Action Required - sent
[18-Dec-2025 18:27:30 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000018 - Action Required - failed
[18-Dec-2025 18:27:31 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000018 - Action Required - sent
[18-Dec-2025 18:27:31 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000018 - Action Required - sent
[18-Dec-2025 18:27:31 Europe/Berlin] ✅ Admin notification email sent for request ID: 18
[18-Dec-2025 18:28:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:28:44 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:28:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
)

[18-Dec-2025 18:28:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:28:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:28:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:28:45 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 18:28:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:28:47 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:28:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:28:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:28:52 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:28:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:28:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 18:28:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 18:28:52 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 18:28:52 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 18:28:52 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 18:28:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:28:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:28:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 18:28:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 18:28:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:28:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:28:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:29:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:29:01 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:29:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:29:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:29:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:29:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:40:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:40:35 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:40:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:41:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:41:38 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:41:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:41:38 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 18:41:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:41:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:41:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:41:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:41:56 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:41:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:42:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:42:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:42:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:42:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:42:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:42:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:42:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:42:07 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:42:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:42:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:42:13 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:42:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:42:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:42:19 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:42:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:42:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:42:26 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:42:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:42:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:42:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:42:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:42:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:42:34 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:42:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:42:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:42:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:42:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:50:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:50:19 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:50:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:54:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:54:27 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:54:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:57:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:57:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:57:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:57:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:57:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:57:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 18:58:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 18:58:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 18:58:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:00:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:00:20 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:00:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:00:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:00:24 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:00:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:00:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:00:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:00:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:00:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:00:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:00:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:00:39 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[18-Dec-2025 19:00:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:00:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:00:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:00:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:00:48 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:00:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:00:48 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:00:48 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:00:48 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 19:00:48 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:00:48 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:00:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:00:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:00:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:00:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:06:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:06:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:06:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:06:32 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:06:32 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:06:32 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:06:32 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:06:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:06:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:06:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:06:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:06:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:06:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:06:59 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:06:59 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:06:59 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:06:59 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:06:59 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 19:06:59 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:06:59 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:06:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:06:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:06:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:06:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:12:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:12:23 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:12:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:12:23 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:12:23 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:12:23 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:12:23 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:12:23 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:12:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:12:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:12:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:12:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:12:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:12:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:12:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:12:29 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:12:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:12:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 19:12:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:12:29 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:12:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:12:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:12:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:12:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:12:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:12:37 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:12:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:12:37 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:12:37 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:12:37 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:12:37 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:12:37 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:12:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:12:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:12:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:12:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:17:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:17:30 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:17:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:17:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:17:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:17:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:17:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:17:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:17:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:17:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:17:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:17:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:19:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:19:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:19:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:19:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:19:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:19:12 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:19:12 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:19:12 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:19:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:19:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:19:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:19:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:19:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:19:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:19:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:19:16 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function bind_param() on bool in /home/twpurnyc/public_html/student/get_lesson_data.php:41
Stack trace:
#0 {main}
  thrown in /home/twpurnyc/public_html/student/get_lesson_data.php on line 41
[18-Dec-2025 19:21:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:21:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:21:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:21:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:21:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:21:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:21:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:21:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:21:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:21:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:21:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1249
[18-Dec-2025 19:21:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1501
[18-Dec-2025 19:21:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:21:39 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function bind_param() on bool in /home/twpurnyc/public_html/student/get_lesson_data.php:78
Stack trace:
#0 {main}
  thrown in /home/twpurnyc/public_html/student/get_lesson_data.php on line 78
[18-Dec-2025 19:25:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:25:00 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:25:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:25:00 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:25:00 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:25:00 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:25:00 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:25:00 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:25:00 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:25:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:25:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:25:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:25:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:25:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:25:09 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function bind_param() on bool in /home/twpurnyc/public_html/student/get_lesson_data.php:112
Stack trace:
#0 {main}
  thrown in /home/twpurnyc/public_html/student/get_lesson_data.php on line 112
[18-Dec-2025 19:27:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:27:33 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:27:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:27:33 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:27:33 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:27:33 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:27:33 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:27:33 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:27:33 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:27:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:27:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:27:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:27:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:30:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:30:08 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:30:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:30:09 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:30:09 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:30:09 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:30:09 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:30:09 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:30:09 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:30:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:30:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:30:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:30:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:30:22 Europe/Berlin] CLEAN LESSON DATA ERROR: No user session
[18-Dec-2025 19:33:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:33:13 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:33:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:33:13 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:33:13 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:33:13 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:33:13 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:33:13 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:33:13 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:33:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:33:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:33:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:33:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:42:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:42:00 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:42:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:42:00 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:42:00 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:42:00 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:42:00 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:42:00 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:42:00 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:42:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:42:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:42:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:42:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:42:00 Europe/Berlin] Error 8: Undefined variable: encrypted_course_id in /home/twpurnyc/public_html/student/course-detail.php on line 5236
[18-Dec-2025 19:42:05 Europe/Berlin] CLEAN LESSON DATA ERROR: No user session
[18-Dec-2025 19:42:16 Europe/Berlin] CLEAN LESSON DATA ERROR: No user session
[18-Dec-2025 19:43:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:43:58 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:43:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:43:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:43:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:43:58 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:43:58 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:43:58 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:43:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:43:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:43:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:43:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:43:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:44:04 Europe/Berlin] CLEAN LESSON DATA ERROR: No user session
[18-Dec-2025 19:45:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:45:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:45:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:45:46 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:45:46 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:45:46 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:45:46 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:45:46 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:45:46 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:45:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:45:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:45:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:45:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:45:53 Europe/Berlin] CLEAN LESSON DATA ERROR: No user session
[18-Dec-2025 19:47:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:47:32 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:47:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:47:32 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:47:32 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:47:32 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:47:32 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:47:32 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:47:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:47:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:47:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:47:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:47:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:47:38 Europe/Berlin] CLEAN LESSON DATA ERROR: No user session
[18-Dec-2025 19:49:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:49:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:49:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:49:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:49:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:49:52 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:49:52 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:49:52 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:49:52 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:49:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:49:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:49:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:49:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:50:03 Europe/Berlin] CLEAN LESSON DATA ERROR: No user session
[18-Dec-2025 19:51:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:51:33 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:51:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:51:33 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:51:33 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:51:33 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:51:33 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:51:33 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:51:33 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:51:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:51:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:51:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:51:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:51:41 Europe/Berlin] CLEAN LESSON DATA ERROR: Session not active - status: 1
[18-Dec-2025 19:53:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:53:17 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:53:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:53:17 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:53:17 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:53:17 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:53:17 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:53:17 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:53:17 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:53:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:53:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:53:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:53:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:53:24 Europe/Berlin] CLEAN LESSON DATA ERROR: No user session - Session Status: PHP_SESSION_NONE - Available keys:  - Session ID: 
[18-Dec-2025 19:58:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:58:47 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:58:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:58:47 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 19:58:47 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 19:58:47 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 19:58:47 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 19:58:47 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 19:58:47 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 19:58:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:58:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:58:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 19:58:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 19:59:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 19:59:41 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 19:59:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 19:59:41 Europe/Berlin] CLEAN LESSON DATA ERROR: Query prepare failed
[18-Dec-2025 20:01:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:01:48 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:01:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:01:48 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:01:48 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:01:48 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 20:01:48 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 20:01:48 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:01:48 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:01:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:01:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:01:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:01:48 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:01:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:01:57 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:01:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:01:57 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: akJKZEZteGNEVmFNSnZNcFdhV1g3Zz...
[18-Dec-2025 20:01:57 Europe/Berlin] 🔓 DECRYPT: Result: 14
[18-Dec-2025 20:01:57 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 31
[18-Dec-2025 20:01:57 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=31
[18-Dec-2025 20:01:57 Europe/Berlin] CLEAN LESSON DATA ERROR: Query prepare failed
[18-Dec-2025 20:03:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:03:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:03:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:03:36 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: akJKZEZteGNEVmFNSnZNcFdhV1g3Zz...
[18-Dec-2025 20:03:36 Europe/Berlin] 🔓 DECRYPT: Result: 14
[18-Dec-2025 20:03:36 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 31
[18-Dec-2025 20:03:36 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=31
[18-Dec-2025 20:03:36 Europe/Berlin] CLEAN LESSON DATA ERROR: Query prepare failed
[18-Dec-2025 20:05:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:05:19 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:05:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:05:19 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:05:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:05:19 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 20:05:19 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 20:05:19 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:05:19 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:05:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:05:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:05:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:05:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:05:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:05:29 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:05:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:05:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:05:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:05:30 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 20:05:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 20:05:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:05:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:05:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:05:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:05:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:05:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:05:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:05:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:05:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:05:45 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: akJKZEZteGNEVmFNSnZNcFdhV1g3Zz...
[18-Dec-2025 20:05:45 Europe/Berlin] 🔓 DECRYPT: Raw result: 14
[18-Dec-2025 20:05:45 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 14
[18-Dec-2025 20:05:45 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 31
[18-Dec-2025 20:05:45 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=31
[18-Dec-2025 20:05:45 Europe/Berlin] CLEAN LESSON DATA ERROR: Query prepare failed
[18-Dec-2025 20:10:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:10:31 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:10:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:10:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:10:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:10:33 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 20:10:33 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 20:10:33 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:10:33 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:10:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:10:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:10:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:10:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:10:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:10:40 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:10:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:14:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:14:53 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:14:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:14:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:14:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:14:56 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 20:14:56 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 20:14:56 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:14:56 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:14:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:14:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:14:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:14:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:15:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:15:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:15:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:17:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:17:02 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:17:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:17:03 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:17:03 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:17:08 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 20:17:08 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 20:17:08 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:17:08 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:17:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:17:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:17:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:17:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:17:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:17:13 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:17:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:17:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:17:42 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:17:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:17:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:17:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:17:42 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:17:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:17:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:17:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:17:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:17:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:17:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:17:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:17:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:17:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:17:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:17:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:17:57 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:17:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:18:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:18:13 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:18:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:18:13 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:18:13 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:18:13 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:18:13 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:18:13 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:18:13 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:18:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:18:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:18:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:18:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:18:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:18:19 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:18:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:18:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:18:56 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:18:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:19:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:19:18 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:19:18 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:19:18 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:19:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:19:19 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:19:19 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:19:19 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:19:19 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:19:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:19:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:19:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:19:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:19:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:19:25 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:19:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:19:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:19:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:19:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:19:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:19:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:19:37 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 20:19:37 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 20:19:37 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:19:37 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:19:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:19:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:19:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:19:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:20:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:20:03 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:20:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:22:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:22:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:22:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:22:43 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:22:43 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:22:43 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:22:43 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:22:43 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:22:43 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:22:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:22:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:22:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:22:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:22:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:22:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:22:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:22:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:22:50 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:22:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:23:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:23:40 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:23:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:23:40 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:23:40 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:23:40 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:23:40 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:23:40 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:23:40 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:23:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:23:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:23:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:23:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:25:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:25:27 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:25:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:25:27 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:25:27 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:25:27 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:25:27 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:25:27 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:25:27 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:25:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:25:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:25:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:25:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:25:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:25:31 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:25:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:25:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:25:43 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:25:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:25:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:25:46 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:25:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:25:52 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:25:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:25:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:25:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:25:53 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:25:53 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:25:53 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:25:53 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:25:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:25:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:25:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:25:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:25:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:25:57 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:25:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:26:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:26:07 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:26:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:26:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:26:12 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:26:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:27:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:27:05 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:27:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:27:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:27:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:27:08 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:27:08 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:27:08 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:27:08 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:27:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:27:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:27:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:27:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:28:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:28:56 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:28:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:32:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:32:31 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:32:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:32:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:32:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:32:31 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 20:32:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 20:32:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:32:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:32:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:32:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:32:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:32:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:32:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:32:36 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:32:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:32:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:32:40 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:32:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:32:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:32:48 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:32:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:32:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:32:49 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:32:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:32:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:32:51 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:32:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:34:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:34:31 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:34:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:34:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:34:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:34:31 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:34:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:34:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:34:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:34:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:34:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:34:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:34:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:34:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:34:45 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:34:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:34:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:34:57 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:34:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:37:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:37:11 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:37:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:37:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:37:13 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:37:13 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:37:13 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:37:13 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:37:13 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:37:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:37:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:37:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:37:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:37:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:37:20 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:37:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:37:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:37:24 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:37:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:37:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:37:25 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:37:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:39:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:39:16 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:39:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:39:16 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:39:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:39:16 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:39:16 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:39:16 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:39:16 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:39:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:39:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:39:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:39:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:42:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:42:19 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:42:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:42:19 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:42:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:42:19 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:42:19 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:42:19 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:42:19 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:42:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:42:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:42:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:42:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:49:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:49:39 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:49:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:49:39 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:49:39 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:49:39 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 20:49:39 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 20:49:39 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:49:39 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:49:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:49:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:49:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:49:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:51:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:51:50 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:51:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:51:50 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:51:50 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:51:50 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[18-Dec-2025 20:51:50 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[18-Dec-2025 20:51:50 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:51:50 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:51:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:51:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:51:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:51:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:53:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Dec-2025 20:53:27 Europe/Berlin] isLoggedIn check result: true
[18-Dec-2025 20:53:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766078924
    [last_regeneration] => 1766078924
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766078924
    [session_started_at] => 2025-12-18 18:28:44
    [cart] => Array
        (
        )

)

[18-Dec-2025 20:53:27 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[18-Dec-2025 20:53:27 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[18-Dec-2025 20:53:27 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[18-Dec-2025 20:53:27 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[18-Dec-2025 20:53:27 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[18-Dec-2025 20:53:27 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[18-Dec-2025 20:53:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:53:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[18-Dec-2025 20:53:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[18-Dec-2025 20:53:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[19-Dec-2025 05:16:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:16:57 Europe/Berlin] isLoggedIn check result: false
[19-Dec-2025 05:16:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-19 05:16:57
)

[19-Dec-2025 05:17:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:17:28 Europe/Berlin] isLoggedIn check result: false
[19-Dec-2025 05:17:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-19 05:16:57
    [created_at] => 1766117817
    [last_regeneration] => 1766117817
    [stored_redirect] => /student/course-detail.php?id=akJKZEZteGNEVmFNSnZNcFdhV1g3Zz09&lesson=30
    [redirect_to_cart] => 
)

[19-Dec-2025 05:17:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:17:38 Europe/Berlin] isLoggedIn check result: false
[19-Dec-2025 05:17:38 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-19 05:16:57
    [created_at] => 1766117817
    [last_regeneration] => 1766117817
    [stored_redirect] => /student/debug_document_submission.php
    [redirect_to_cart] => 
)

[19-Dec-2025 05:30:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:30:05 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 05:30:05 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-19 05:16:57
    [created_at] => 1766118604
    [last_regeneration] => 1766118604
    [stored_redirect] => /student/course-detail.php?id=akJKZEZteGNEVmFNSnZNcFdhV1g3Zz09&lesson=30
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766118604
)

[19-Dec-2025 05:30:07 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 05:30:07 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 05:30:08 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[19-Dec-2025 05:30:08 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 05:30:08 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 05:30:08 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 05:30:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[19-Dec-2025 05:30:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[19-Dec-2025 05:30:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:30:23 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 05:30:23 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-19 05:16:57
    [created_at] => 1766118604
    [last_regeneration] => 1766118604
    [stored_redirect] => /student/course-detail.php?id=akJKZEZteGNEVmFNSnZNcFdhV1g3Zz09&lesson=30
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766118604
)

[19-Dec-2025 05:30:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:30:30 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 05:30:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-19 05:16:57
    [created_at] => 1766118604
    [last_regeneration] => 1766118604
    [stored_redirect] => /student/course-detail.php?id=akJKZEZteGNEVmFNSnZNcFdhV1g3Zz09&lesson=30
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766118604
)

[19-Dec-2025 05:30:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[19-Dec-2025 05:30:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 05:30:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 32
[19-Dec-2025 05:30:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[19-Dec-2025 05:30:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2533
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2533
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 05:30:31 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2744
[19-Dec-2025 05:30:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2744
[19-Dec-2025 05:31:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:31:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:32:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:32:09 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 05:32:09 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-19 05:16:57
    [created_at] => 1766118604
    [last_regeneration] => 1766118604
    [stored_redirect] => /student/course-detail.php?id=akJKZEZteGNEVmFNSnZNcFdhV1g3Zz09&lesson=30
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766118604
)

[19-Dec-2025 05:32:09 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[19-Dec-2025 05:32:09 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 05:32:09 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 42
[19-Dec-2025 05:32:09 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 42
[19-Dec-2025 05:32:09 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[19-Dec-2025 05:32:09 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2533
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2533
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 05:32:10 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2744
[19-Dec-2025 05:32:10 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2744
[19-Dec-2025 05:33:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:33:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:48:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 05:48:01 Europe/Berlin] isLoggedIn check result: false
[19-Dec-2025 05:48:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-19 05:48:01
)

[19-Dec-2025 06:42:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 06:42:36 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 06:42:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-19 05:16:57
    [created_at] => 1766118604
    [last_regeneration] => 1766118604
    [stored_redirect] => /student/course-detail.php?id=akJKZEZteGNEVmFNSnZNcFdhV1g3Zz09&lesson=30
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766118604
)

[19-Dec-2025 06:42:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[19-Dec-2025 06:42:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 06:42:36 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 40
[19-Dec-2025 06:42:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 40
[19-Dec-2025 06:42:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[19-Dec-2025 06:42:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2533
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2533
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 06:42:36 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2744
[19-Dec-2025 06:42:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2744
[19-Dec-2025 07:04:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:04:05 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:04:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
)

[19-Dec-2025 07:04:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:04:05 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:04:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:04:05 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[19-Dec-2025 07:04:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:04:11 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:04:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:04:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:04:20 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:04:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:04:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:04:20 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:04:20 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:04:20 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:04:20 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[19-Dec-2025 07:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:04:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[19-Dec-2025 07:06:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:06:03 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:06:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:06:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:06:07 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:06:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:06:07 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 17, is_enrolled: YES
[19-Dec-2025 07:06:07 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:06:07 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 32
[19-Dec-2025 07:06:07 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [32,33,34,35,36,37,38,40,41,42]
[19-Dec-2025 07:06:07 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 10, Completed: 0, Percentage: 0%
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1358
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2533
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2533
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 07:06:08 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2721
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2725
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2744
[19-Dec-2025 07:06:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2744
[19-Dec-2025 07:06:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:06:19 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:06:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:06:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:06:25 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:06:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:07:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:07:53 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:07:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:07:53 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:07:53 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:07:53 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:07:53 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:07:53 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:07:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:07:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[19-Dec-2025 07:07:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[19-Dec-2025 07:07:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1520
[19-Dec-2025 07:09:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:09:31 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:09:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:09:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:09:35 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:09:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:18:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:18:50 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:18:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:18:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:18:55 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:18:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:18:55 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:18:55 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:18:55 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:18:55 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:18:55 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:18:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:18:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:18:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:18:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:26:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:26:03 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:26:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:26:04 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:26:04 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:26:04 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:26:04 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:26:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:26:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:26:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:26:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:26:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:28:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:28:12 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:28:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:28:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:28:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:28:13 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:28:13 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:28:13 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:28:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:28:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:28:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:28:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:28:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:28:20 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:28:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:28:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:28:20 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:28:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:28:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:28:21 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:28:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:28:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:28:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:28:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:28:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:28:35 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:28:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:28:35 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:28:35 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:28:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:28:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:28:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:28:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:28:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:28:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:28:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:28:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:28:41 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:28:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:28:41 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:28:41 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:28:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:28:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:28:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:28:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:28:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:28:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:28:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:32:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:32:14 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:32:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:32:14 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:32:14 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:32:14 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:32:14 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:32:14 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:32:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:32:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:32:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:32:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:35:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:35:40 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:35:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:35:40 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:35:40 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:35:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:35:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:35:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:35:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:35:42 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:35:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:35:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:35:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:35:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:35:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:35:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:35:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:35:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:35:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:35:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:37:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:37:21 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:37:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:37:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:37:24 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:37:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:37:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:37:29 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:37:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:37:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:37:36 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:37:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:37:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:37:40 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:37:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:37:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:37:45 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:37:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:37:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:37:54 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:37:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:37:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:37:57 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:37:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:38:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:38:26 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:38:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:39:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:39:12 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:39:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:39:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:39:19 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:39:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:39:20 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[19-Dec-2025 07:39:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:39:29 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:39:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:39:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:39:34 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:39:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:39:34 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:39:34 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:39:34 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[19-Dec-2025 07:39:34 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:39:34 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:39:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:39:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:39:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:39:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:39:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:39:54 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:39:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:39:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[19-Dec-2025 07:39:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 07:39:54 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[19-Dec-2025 07:39:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[19-Dec-2025 07:39:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[19-Dec-2025 07:39:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[19-Dec-2025 07:39:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:39:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:39:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 07:39:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 07:46:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:46:50 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:46:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:47:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:47:03 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:47:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:47:04 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[19-Dec-2025 07:47:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:47:36 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:47:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766124244
    [last_regeneration] => 1766124244
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766124244
    [session_started_at] => 2025-12-19 07:04:05
    [cart] => Array
        (
        )

)

[19-Dec-2025 07:50:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 07:50:22 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 07:50:22 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766127003
    [created_at] => 1766127003
    [last_regeneration] => 1766127003
    [session_started_at] => 2025-12-19 07:50:03
)

[19-Dec-2025 09:39:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 09:39:31 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 09:39:31 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766133358
    [created_at] => 1766133358
    [last_regeneration] => 1766133358
    [session_started_at] => 2025-12-19 09:35:58
)

[19-Dec-2025 09:40:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 09:40:34 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 09:40:34 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766133358
    [created_at] => 1766133358
    [last_regeneration] => 1766133358
    [session_started_at] => 2025-12-19 09:35:58
)

[19-Dec-2025 09:40:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 09:40:54 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 09:40:54 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766133358
    [created_at] => 1766133358
    [last_regeneration] => 1766133358
    [session_started_at] => 2025-12-19 09:35:58
)

[19-Dec-2025 09:46:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 09:46:03 Europe/Berlin] isLoggedIn check result: false
[19-Dec-2025 09:46:03 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-19 09:46:03
)

[19-Dec-2025 09:51:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 09:51:47 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 09:51:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766134242
    [last_regeneration] => 1766134242
    [session_started_at] => 2025-12-19 09:41:21
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766134242
)

[19-Dec-2025 09:51:47 Europe/Berlin] Dashboard hours debug: User 47 has total hours: 0
[19-Dec-2025 09:52:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 09:52:24 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 09:52:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766134242
    [last_regeneration] => 1766134242
    [session_started_at] => 2025-12-19 09:41:21
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766134242
)

[19-Dec-2025 09:52:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 09:52:55 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 09:52:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766134242
    [last_regeneration] => 1766134242
    [session_started_at] => 2025-12-19 09:41:21
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766134242
)

[19-Dec-2025 09:53:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 09:53:05 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 09:53:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1766134242
    [last_regeneration] => 1766134242
    [session_started_at] => 2025-12-19 09:41:21
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766134242
    [cart] => Array
        (
        )

)

[19-Dec-2025 09:53:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 09:53:12 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 09:53:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766134242
    [last_regeneration] => 1766134242
    [session_started_at] => 2025-12-19 09:41:21
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766134242
    [cart] => Array
        (
        )

)

[19-Dec-2025 09:53:12 Europe/Berlin] CART CLEARING: Cleared session cart during checkout process for user 47
[19-Dec-2025 09:54:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 09:54:16 Europe/Berlin] Payment Return Auth Debug - User ID: 47
[19-Dec-2025 09:54:16 Europe/Berlin] Payment Return Auth Debug - Role: NOT SET
[19-Dec-2025 09:54:16 Europe/Berlin] Payment Return Auth Debug - Is Logged In: YES
[19-Dec-2025 09:54:17 Europe/Berlin] PayFast Return Parameters: Array
(
    [type] => cart
)

[19-Dec-2025 09:54:17 Europe/Berlin] Payment Return: Cart payment detected - clearing session cart immediately
[19-Dec-2025 09:54:17 Europe/Berlin] Payment Return Debug - Session Data: Array
(
    [created_at] => 1766134242
    [last_regeneration] => 1766134242
    [session_started_at] => 2025-12-19 09:41:21
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766134242
    [cart] => Array
        (
        )

    [payment_amount] => 1200
    [payment_course_titles] => Array
        (
            [0] => Computer Literacy
        )

    [payment_course_ids] => Array
        (
            [0] => 19
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [teacher_first_name] => Cephas
                    [teacher_last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

)

[19-Dec-2025 09:54:17 Europe/Berlin] Payment Return Debug - GET params: Array
(
    [type] => cart
)

[19-Dec-2025 09:54:17 Europe/Berlin] Payment Return Debug - Is Cart Payment: YES
[19-Dec-2025 09:54:18 Europe/Berlin] Revenue sharing processed for enrollment 79, purchase 76
[19-Dec-2025 09:54:18 Europe/Berlin] Email logged successfully: mrmaphosa1987@gmail.com - 🎉 Purchase Confirmed: "Computer Literacy" - Access Now Available! - failed
[19-Dec-2025 09:54:18 Europe/Berlin] Email logged successfully: mrmaphosa1987@gmail.com - 🎉 Purchase Confirmed: "Computer Literacy" - Access Now Available! - sent
[19-Dec-2025 09:54:18 Europe/Berlin] Email logged successfully: mrmaphosa1987@gmail.com - 🎉 Purchase Confirmed: "Computer Literacy" - Access Now Available! - sent
[19-Dec-2025 09:54:18 Europe/Berlin] Purchase confirmation email sent: SUCCESS for course 19 to user 47
[19-Dec-2025 09:54:18 Europe/Berlin] Email logged successfully: maphosacephas58@gmail.com - 🎉 Course Sale: "Computer Literacy" - New Student Enrolled! - failed
[19-Dec-2025 09:54:19 Europe/Berlin] Email logged successfully: maphosacephas58@gmail.com - 🎉 Course Sale: "Computer Literacy" - New Student Enrolled! - sent
[19-Dec-2025 09:54:19 Europe/Berlin] Email logged successfully: maphosacephas58@gmail.com - 🎉 Course Sale: "Computer Literacy" - New Student Enrolled! - sent
[19-Dec-2025 09:54:19 Europe/Berlin] Teacher sale notification email sent: SUCCESS for course 19 to teacher
[19-Dec-2025 09:54:19 Europe/Berlin] Payment record SQL error: 
[19-Dec-2025 09:54:19 Europe/Berlin] Cart referral rewards processed - 1 rewards given
[19-Dec-2025 10:10:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:10:39 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:10:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
)

[19-Dec-2025 10:10:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:10:40 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:10:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

)

[19-Dec-2025 10:10:40 Europe/Berlin] Dashboard hours debug: User 47 has total hours: 64
[19-Dec-2025 10:11:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:11:24 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:11:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

)

[19-Dec-2025 10:11:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:11:38 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:11:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

)

[19-Dec-2025 10:11:38 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[19-Dec-2025 10:11:38 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 10:11:38 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[19-Dec-2025 10:11:38 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[19-Dec-2025 10:11:38 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[19-Dec-2025 10:11:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 10:11:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 10:11:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:11:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:11:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:11:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:11:39 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:11:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:11:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:11:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:11:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:12:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:12:50 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:12:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

)

[19-Dec-2025 10:12:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[19-Dec-2025 10:12:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 10:12:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[19-Dec-2025 10:12:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[19-Dec-2025 10:12:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[19-Dec-2025 10:12:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 10:12:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 10:12:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:12:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:12:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:12:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:12:52 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:12:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:12:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:12:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:12:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:14:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:14:02 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:14:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

)

[19-Dec-2025 10:14:03 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[19-Dec-2025 10:14:03 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 10:14:03 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 45
[19-Dec-2025 10:14:03 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[19-Dec-2025 10:14:03 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[19-Dec-2025 10:14:03 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[19-Dec-2025 10:14:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 10:14:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 10:14:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:14:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:14:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:14:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:14:03 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:14:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:14:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:14:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:14:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:14:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:14:28 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:14:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

)

[19-Dec-2025 10:14:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:14:47 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:14:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

)

[19-Dec-2025 10:14:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:14:48 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:14:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

)

[19-Dec-2025 10:15:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:15:11 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:15:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

)

[19-Dec-2025 10:15:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:15:11 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:15:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

    [error] => Invalid or corrupted course ID
)

[19-Dec-2025 10:15:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:15:30 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:15:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

    [error] => Invalid or corrupted course ID
)

[19-Dec-2025 10:15:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:15:38 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:15:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

    [error] => Invalid or corrupted course ID
)

[19-Dec-2025 10:15:38 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[19-Dec-2025 10:15:38 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 10:15:38 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[19-Dec-2025 10:15:38 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[19-Dec-2025 10:15:38 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[19-Dec-2025 10:15:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 10:15:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 10:15:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:15:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:15:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:15:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:15:38 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:15:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:15:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:15:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:15:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:15:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:15:58 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:15:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

    [error] => Invalid or corrupted course ID
)

[19-Dec-2025 10:16:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:16:12 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:16:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

    [error] => Invalid or corrupted course ID
)

[19-Dec-2025 10:16:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:16:12 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:16:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

    [error] => Invalid or corrupted course ID
)

[19-Dec-2025 10:16:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:16:48 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:16:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

    [error] => Invalid or corrupted course ID
)

[19-Dec-2025 10:16:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:16:55 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:16:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

    [error] => Invalid or corrupted course ID
)

[19-Dec-2025 10:16:55 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[19-Dec-2025 10:16:55 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 10:16:55 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[19-Dec-2025 10:16:55 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[19-Dec-2025 10:16:55 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[19-Dec-2025 10:16:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 10:16:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 10:16:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:16:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:16:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:16:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:16:55 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:16:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:16:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:16:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:16:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:18:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:18:29 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:18:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

    [error] => Invalid or corrupted course ID
)

[19-Dec-2025 10:18:29 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[19-Dec-2025 10:18:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[19-Dec-2025 10:18:29 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 45
[19-Dec-2025 10:18:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[19-Dec-2025 10:18:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[19-Dec-2025 10:18:29 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[19-Dec-2025 10:18:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1293
[19-Dec-2025 10:18:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1545
[19-Dec-2025 10:18:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:18:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[19-Dec-2025 10:18:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:18:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:18:29 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[19-Dec-2025 10:18:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:18:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[19-Dec-2025 10:18:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:18:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[19-Dec-2025 10:21:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Dec-2025 10:21:39 Europe/Berlin] isLoggedIn check result: true
[19-Dec-2025 10:21:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766135438
    [last_regeneration] => 1766135438
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766135438
    [session_started_at] => 2025-12-19 10:10:39
    [cart] => Array
        (
        )

    [error] => Invalid or corrupted course ID
)

[19-Dec-2025 10:21:39 Europe/Berlin] Dashboard hours debug: User 47 has total hours: 64
[21-Dec-2025 10:15:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:15:45 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:15:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308544
    [last_regeneration] => 1766308544
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308544
    [session_started_at] => 2025-12-21 10:15:45
)

[21-Dec-2025 10:15:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:15:45 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:15:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308544
    [last_regeneration] => 1766308544
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308544
    [session_started_at] => 2025-12-21 10:15:45
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:15:46 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[21-Dec-2025 10:15:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:15:54 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:15:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308544
    [last_regeneration] => 1766308544
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308544
    [session_started_at] => 2025-12-21 10:15:45
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:18:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:18:02 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:18:02 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308671
    [created_at] => 1766308671
    [last_regeneration] => 1766308671
    [session_started_at] => 2025-12-21 10:17:51
)

[21-Dec-2025 10:18:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:18:22 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:18:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308702
    [last_regeneration] => 1766308702
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308702
    [session_started_at] => 2025-12-21 10:18:22
)

[21-Dec-2025 10:18:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:18:23 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:18:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308702
    [last_regeneration] => 1766308702
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308702
    [session_started_at] => 2025-12-21 10:18:22
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:18:23 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[21-Dec-2025 10:18:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:18:26 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:18:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308702
    [last_regeneration] => 1766308702
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308702
    [session_started_at] => 2025-12-21 10:18:22
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:18:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:18:33 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:18:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308702
    [last_regeneration] => 1766308702
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308702
    [session_started_at] => 2025-12-21 10:18:22
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:18:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:18:39 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:18:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308702
    [last_regeneration] => 1766308702
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308702
    [session_started_at] => 2025-12-21 10:18:22
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:18:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:18:42 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:18:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308702
    [last_regeneration] => 1766308702
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308702
    [session_started_at] => 2025-12-21 10:18:22
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:18:42 Europe/Berlin] CART CLEARING: Cleared session cart during checkout process for user 45
[21-Dec-2025 10:19:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:19:08 Europe/Berlin] Payment Return Auth Debug - User ID: 45
[21-Dec-2025 10:19:08 Europe/Berlin] Payment Return Auth Debug - Role: NOT SET
[21-Dec-2025 10:19:08 Europe/Berlin] Payment Return Auth Debug - Is Logged In: YES
[21-Dec-2025 10:19:08 Europe/Berlin] PayFast Return Parameters: Array
(
    [type] => cart
)

[21-Dec-2025 10:19:08 Europe/Berlin] Payment Return: Cart payment detected - clearing session cart immediately
[21-Dec-2025 10:19:08 Europe/Berlin] Payment Return Debug - Session Data: Array
(
    [created_at] => 1766308702
    [last_regeneration] => 1766308702
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308702
    [session_started_at] => 2025-12-21 10:18:22
    [cart] => Array
        (
        )

    [payment_amount] => 2000
    [payment_course_titles] => Array
        (
            [0] => data analytics
        )

    [payment_course_ids] => Array
        (
            [0] => 20
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 20
                    [title] => data analytics
                    [description] => welcome
                    [price] => 2000.00
                    [thumbnail] => ../uploads/thumbnails/course_1766308652_6947bb2c4feee.jpeg
                    [teacher_first_name] => Jonnie
                    [teacher_last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

)

[21-Dec-2025 10:19:08 Europe/Berlin] Payment Return Debug - GET params: Array
(
    [type] => cart
)

[21-Dec-2025 10:19:08 Europe/Berlin] Payment Return Debug - Is Cart Payment: YES
[21-Dec-2025 10:19:08 Europe/Berlin] Revenue sharing processed for enrollment 80, purchase 77
[21-Dec-2025 10:19:08 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "data analytics" - Access Now Available! - failed
[21-Dec-2025 10:19:09 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "data analytics" - Access Now Available! - sent
[21-Dec-2025 10:19:09 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "data analytics" - Access Now Available! - sent
[21-Dec-2025 10:19:09 Europe/Berlin] Purchase confirmation email sent: SUCCESS for course 20 to user 45
[21-Dec-2025 10:19:09 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "data analytics" - New Student Enrolled! - failed
[21-Dec-2025 10:19:09 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "data analytics" - New Student Enrolled! - sent
[21-Dec-2025 10:19:09 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "data analytics" - New Student Enrolled! - sent
[21-Dec-2025 10:19:09 Europe/Berlin] Teacher sale notification email sent: SUCCESS for course 20 to teacher
[21-Dec-2025 10:19:09 Europe/Berlin] Payment record SQL error: 
[21-Dec-2025 10:19:09 Europe/Berlin] TEACHER COMMISSION SUCCESS: Inserted R100 commission for teacher 44 from referral 36
[21-Dec-2025 10:19:09 Europe/Berlin] Cart referral rewards processed - 1 rewards given
[21-Dec-2025 10:19:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:19:16 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:19:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308702
    [last_regeneration] => 1766308702
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308702
    [session_started_at] => 2025-12-21 10:18:22
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 20
                    [title] => data analytics
                    [price] => 2000.00
                    [thumbnail] => ../uploads/thumbnails/course_1766308652_6947bb2c4feee.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2000
)

[21-Dec-2025 10:19:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:19:26 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:19:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308702
    [last_regeneration] => 1766308702
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308702
    [session_started_at] => 2025-12-21 10:18:22
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 20
                    [title] => data analytics
                    [price] => 2000.00
                    [thumbnail] => ../uploads/thumbnails/course_1766308652_6947bb2c4feee.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 2000
)

[21-Dec-2025 10:19:26 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 10:19:27 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 10:19:27 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = NULL
[21-Dec-2025 10:19:27 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: []
[21-Dec-2025 10:19:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1673
[21-Dec-2025 10:19:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[21-Dec-2025 10:19:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[21-Dec-2025 10:19:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:19:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:19:27 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:19:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[21-Dec-2025 10:19:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[21-Dec-2025 10:19:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[21-Dec-2025 10:19:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[21-Dec-2025 10:19:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:19:42 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:19:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
)

[21-Dec-2025 10:19:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:19:43 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:19:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:19:43 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 120
[21-Dec-2025 10:19:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:19:45 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:19:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:19:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:19:50 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:19:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:19:50 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 10:19:50 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 10:19:50 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = NULL
[21-Dec-2025 10:19:50 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: []
[21-Dec-2025 10:19:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1673
[21-Dec-2025 10:19:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[21-Dec-2025 10:19:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[21-Dec-2025 10:19:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:19:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:19:50 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:19:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[21-Dec-2025 10:19:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[21-Dec-2025 10:19:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[21-Dec-2025 10:19:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[21-Dec-2025 10:31:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:31:11 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:31:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:31:11 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 10:31:11 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 10:31:11 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = NULL
[21-Dec-2025 10:31:11 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: []
[21-Dec-2025 10:31:11 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1673
[21-Dec-2025 10:31:11 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[21-Dec-2025 10:31:11 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[21-Dec-2025 10:31:11 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:31:11 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:31:11 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:31:11 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[21-Dec-2025 10:31:11 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[21-Dec-2025 10:31:11 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[21-Dec-2025 10:31:11 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[21-Dec-2025 10:31:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:31:17 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:31:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:31:18 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 10:31:18 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 10:31:18 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = NULL
[21-Dec-2025 10:31:18 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: []
[21-Dec-2025 10:31:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1673
[21-Dec-2025 10:31:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[21-Dec-2025 10:31:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2549
[21-Dec-2025 10:31:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:31:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:31:18 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2737
[21-Dec-2025 10:31:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[21-Dec-2025 10:31:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2741
[21-Dec-2025 10:31:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[21-Dec-2025 10:31:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2760
[21-Dec-2025 10:39:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:39:11 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:39:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:39:12 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 120
[21-Dec-2025 10:39:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:39:21 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:39:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:39:21 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 10:39:21 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 10:39:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = NULL
[21-Dec-2025 10:39:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: []
[21-Dec-2025 10:39:21 Europe/Berlin] BANNER PROGRESS: Course ID 20 has NO CONTENT - Progress set to 0%
[21-Dec-2025 10:39:21 Europe/Berlin] Error 8: Undefined variable: course_passing_grade in /home/twpurnyc/public_html/student/course-detail.php on line 1113
[21-Dec-2025 10:39:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1701
[21-Dec-2025 10:39:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 10:39:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 10:39:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 10:39:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 10:39:21 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 10:39:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 10:39:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 10:39:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 10:39:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 10:39:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:39:31 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:39:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:40:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:40:32 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:40:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:41:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:41:01 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:41:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:41:02 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 120
[21-Dec-2025 10:41:48 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[21-Dec-2025 10:41:48 Europe/Berlin] Certificate Generation Error: Student not found
[21-Dec-2025 10:41:48 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[21-Dec-2025 10:41:48 Europe/Berlin] Certificate Generation Error: Student not found
[21-Dec-2025 10:45:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:45:49 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:45:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:45:49 Europe/Berlin] COURSES.PHP PROGRESS: Course ID 20 has NO CONTENT - Progress set to 0%
[21-Dec-2025 10:49:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:49:13 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:49:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:49:13 Europe/Berlin] COURSES.PHP PROGRESS: Course ID 20 has NO CONTENT - Progress set to 0%
[21-Dec-2025 10:49:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:49:23 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:49:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:49:23 Europe/Berlin] COURSE-DETAILS.PHP PROGRESS: Course ID 20 has NO CONTENT - Progress set to 0%
[21-Dec-2025 10:52:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:52:03 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:52:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:52:04 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 120
[21-Dec-2025 10:52:05 Europe/Berlin] DASHBOARD.PHP CONTINUE LEARNING: Course ID 20 has NO CONTENT - Progress set to 0%
[21-Dec-2025 10:52:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:52:23 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:52:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:52:23 Europe/Berlin] COURSES.PHP PROGRESS: Course ID 20 has NO CONTENT - Progress set to 0%
[21-Dec-2025 10:52:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:52:41 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:52:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:52:41 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 120
[21-Dec-2025 10:52:41 Europe/Berlin] DASHBOARD.PHP CONTINUE LEARNING: Course ID 20 has NO CONTENT - Progress set to 0%
[21-Dec-2025 10:56:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:56:25 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:56:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:56:25 Europe/Berlin] COURSES.PHP PROGRESS: Course ID 20 has NO CONTENT - Progress set to 0%
[21-Dec-2025 10:56:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 10:56:31 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 10:56:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766308782
    [last_regeneration] => 1766308782
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766308782
    [session_started_at] => 2025-12-21 10:19:42
    [cart] => Array
        (
        )

)

[21-Dec-2025 10:56:33 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 10:56:34 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 10:56:35 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = NULL
[21-Dec-2025 10:56:35 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: []
[21-Dec-2025 10:56:39 Europe/Berlin] BANNER PROGRESS: Course ID 20 has NO CONTENT - Progress set to 0%
[21-Dec-2025 10:56:39 Europe/Berlin] Error 8: Undefined variable: course_passing_grade in /home/twpurnyc/public_html/student/course-detail.php on line 1113
[21-Dec-2025 10:56:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 1701
[21-Dec-2025 10:56:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 10:56:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 10:56:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 10:56:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 10:56:39 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 10:56:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 10:56:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 10:56:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 10:56:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:00:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:00:27 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:00:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
)

[21-Dec-2025 11:00:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:00:27 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:00:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:00:28 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 120
[21-Dec-2025 11:00:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:00:34 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:00:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:00:34 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 120
[21-Dec-2025 11:00:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:00:35 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:00:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:00:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:00:40 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:00:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:00:41 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:00:41 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:00:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[21-Dec-2025 11:00:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:00:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:00:41 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:00:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:02:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:02:51 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:02:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:02:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:02:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:02:51 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:02:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:02:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:02:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:02:51 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:02:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:11:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:11:28 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:11:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:11:28 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:11:28 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:11:28 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:11:28 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:11:28 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:11:28 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:11:28 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:11:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:11:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:11:39 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:11:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:11:40 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:11:40 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:11:40 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:11:40 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:11:40 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:11:40 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:11:41 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:11:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:13:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:13:20 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:13:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:13:26 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:13:27 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:13:30 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:13:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:13:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:13:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:13:33 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:13:33 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:28:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:28:38 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:28:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:28:38 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:28:38 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:28:38 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:28:38 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:28:38 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:28:38 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:28:39 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:28:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:30:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:30:22 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:30:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:30:22 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:30:22 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:30:22 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:30:22 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:30:22 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:30:22 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:30:23 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:30:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:41:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:41:36 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:41:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:41:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:41:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:41:36 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:41:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:41:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:41:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:41:36 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:41:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:42:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:42:22 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:42:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:42:22 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:42:22 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:42:22 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:42:22 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:42:22 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:42:22 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1333
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1423
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1333
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1423
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:42:22 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[21-Dec-2025 11:42:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[21-Dec-2025 11:43:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:43:52 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:43:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:43:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:43:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:43:52 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:43:52 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:43:52 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:43:52 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1333
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1423
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1333
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1423
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:43:52 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[21-Dec-2025 11:43:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[21-Dec-2025 11:45:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:45:16 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:45:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:45:16 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:45:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:45:16 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:45:16 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:45:16 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:45:16 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1333
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1423
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1333
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1423
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:45:16 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[21-Dec-2025 11:45:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[21-Dec-2025 11:45:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:45:49 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:45:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:45:49 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:45:49 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:45:49 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:45:49 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:45:49 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:45:49 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1333
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1423
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1333
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1423
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:45:49 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[21-Dec-2025 11:45:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[21-Dec-2025 11:46:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:46:23 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:46:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 11:46:23 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 11:46:23 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 11:46:24 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 11:46:24 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 11:46:24 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 11:46:24 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:46:24 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:46:24 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 11:57:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 11:57:47 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 11:57:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 12:58:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 12:58:49 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 12:58:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 12:58:50 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 12:58:50 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 12:58:50 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 12:58:50 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 12:58:50 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 12:58:50 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 12:58:50 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 12:58:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 12:59:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 12:59:03 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 12:59:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 12:59:03 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 12:59:03 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 12:59:03 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 12:59:03 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 12:59:03 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 12:59:03 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 12:59:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 12:59:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 12:59:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 12:59:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 12:59:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 12:59:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 12:59:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 12:59:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 12:59:04 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 12:59:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 12:59:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 12:59:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 12:59:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:09:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:09:35 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:09:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 13:09:35 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:09:35 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:09:35 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 13:09:35 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 13:09:35 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:09:35 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:09:35 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:09:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:11:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:11:18 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:11:18 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 13:11:18 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:11:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:11:19 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 13:11:19 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 13:11:19 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:11:19 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:11:19 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:11:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:17:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:17:03 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:17:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 13:17:03 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:17:03 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:17:03 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 13:17:03 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 13:17:03 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:17:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:17:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:17:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:17:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:17:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:17:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:17:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:17:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:17:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:17:06 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:17:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:17:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:17:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:17:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:19:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:19:06 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:19:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766311226
    [last_regeneration] => 1766311226
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766311226
    [session_started_at] => 2025-12-21 11:00:27
    [cart] => Array
        (
        )

)

[21-Dec-2025 13:19:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:19:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:19:06 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 13:19:06 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 13:19:06 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:19:06 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:19:07 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:19:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:23:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:23:02 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 13:23:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
)

[21-Dec-2025 13:23:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:23:11 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:23:11 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:23:11 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:23:11 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:23:11 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 13:23:11 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 13:23:11 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:23:11 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:23:11 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:23:11 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:23:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:23:22 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:23:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:23:22 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:23:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:23:28 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:23:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:23:28 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:23:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:23:35 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:23:35 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:23:35 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:23:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:23:38 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:23:38 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:23:38 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:24:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:24:23 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:24:23 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:24:23 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:24:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:24:26 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:24:26 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:24:26 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:24:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:24:27 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:24:27 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:24:27 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:24:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:24:28 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:24:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:24:28 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:33:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:33:07 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:33:07 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:33:07 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:33:07 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:33:07 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 13:33:07 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 13:33:07 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:33:07 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:33:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:33:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:33:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:33:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:33:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:33:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:33:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:33:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:33:08 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:33:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:33:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:33:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:33:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:33:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:33:15 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:33:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:23:02
    [created_at] => 1766319789
    [last_regeneration] => 1766319789
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766319789
)

[21-Dec-2025 13:33:15 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:36:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:36:02 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 13:36:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
)

[21-Dec-2025 13:36:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:36:11 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:36:11 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 13:36:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:36:16 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:36:16 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 13:36:17 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:36:18 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:36:19 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[21-Dec-2025 13:36:19 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:36:19 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:20 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:36:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:36:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:36:25 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:36:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 13:36:25 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:36:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:36:25 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:36:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 13:36:26 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:36:26 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:36:26 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 13:36:26 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 13:36:26 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:36:27 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:28 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:36:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:36:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:36:37 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:36:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 13:36:37 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:36:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:36:37 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:36:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 13:36:38 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:36:38 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:36:39 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[21-Dec-2025 13:36:39 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[21-Dec-2025 13:36:39 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:36:39 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:39 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:36:39 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:36:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:36:43 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:36:43 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 13:36:43 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 13:36:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:36:44 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:36:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 13:36:44 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:36:44 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:36:44 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 13:36:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 13:36:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:36:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:45 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:36:45 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:54:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 13:54:36 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 13:54:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 13:54:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 13:54:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 13:54:36 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 13:54:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 13:54:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 13:54:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1411
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:54:37 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 13:54:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[21-Dec-2025 14:05:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:05:00 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:05:00 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:05:00 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 14:05:00 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 14:05:00 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 14:05:00 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 14:05:00 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 14:05:00 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:05:01 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:05:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:05:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:05:02 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:05:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:05:02 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 14:05:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:05:06 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:05:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:05:06 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 14:05:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:05:10 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:05:10 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:05:10 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 14:05:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:05:41 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:05:41 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:05:41 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 14:08:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:08:20 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:08:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:08:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 14:08:21 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 14:08:21 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 14:08:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 14:08:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 14:08:21 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:08:21 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:08:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:08:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:08:41 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:08:41 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:08:41 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 14:09:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:09:28 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:09:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:09:28 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 14:09:28 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 14:09:28 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 14:09:28 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 14:09:28 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 14:09:28 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:09:29 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:09:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:09:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:09:30 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:09:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:09:30 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 14:09:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:09:43 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:09:43 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:09:44 Europe/Berlin] CLEAN LESSON DATA ERROR: No course_id provided
[21-Dec-2025 14:11:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:11:30 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:11:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:11:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 14:11:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 14:11:30 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 14:11:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 14:11:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 14:11:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:11:30 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:11:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:11:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:11:31 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:11:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:11:31 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 14:11:31 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 14:11:31 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 14:11:31 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 14:11:31 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 14:11:31 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 14:11:31 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 14:11:31 Europe/Berlin] CLEAN LESSON DATA ERROR: Query prepare failed
[21-Dec-2025 14:11:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:11:42 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:11:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:11:42 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 14:11:42 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 14:11:42 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 14:11:42 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 14:11:42 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[21-Dec-2025 14:11:42 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[21-Dec-2025 14:11:42 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[21-Dec-2025 14:11:42 Europe/Berlin] CLEAN LESSON DATA ERROR: Query prepare failed
[21-Dec-2025 14:28:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:28:06 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:28:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:28:08 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 14:28:08 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 14:28:10 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 14:28:10 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 14:28:10 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 14:28:10 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:28:12 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:28:12 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:28:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:28:15 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:28:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:28:15 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 14:28:15 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 14:28:15 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 14:28:15 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 14:28:15 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 14:28:15 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 14:28:15 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 14:28:15 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 14:28:15 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 14:28:15 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.lesson_id, v.title, v.description, v.video_url, v.video_path, v.thumbnail, v.duration, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.video_url LIKE 'http%' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.lesson_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 14:28:15 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 14:28:15 Europe/Berlin] ❌ QUERY PREPARE FAILED: Unknown column 'v.lesson_id' in 'field list'
[21-Dec-2025 14:28:15 Europe/Berlin] ❌ QUERY ERRNO: 1054
[21-Dec-2025 14:28:15 Europe/Berlin] ❌ CLEAN LESSON DATA ERROR: Query prepare failed: Unknown column 'v.lesson_id' in 'field list'
[21-Dec-2025 14:28:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:28:22 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:28:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:28:22 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 14:28:22 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 14:28:22 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 14:28:22 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 14:28:22 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 14:28:22 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:28:22 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:28:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:28:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:28:24 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:28:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 13:36:02
    [created_at] => 1766320569
    [last_regeneration] => 1766320569
    [stored_redirect] => /student/course-details.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766320569
)

[21-Dec-2025 14:28:24 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 14:28:24 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 14:28:24 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 14:28:24 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 14:28:24 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 14:28:24 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 14:28:24 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 14:28:24 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 14:28:24 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 14:28:24 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.lesson_id, v.title, v.description, v.video_url, v.video_path, v.thumbnail, v.duration, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.video_url LIKE 'http%' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.lesson_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 14:28:24 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 14:28:24 Europe/Berlin] ❌ QUERY PREPARE FAILED: Unknown column 'v.lesson_id' in 'field list'
[21-Dec-2025 14:28:24 Europe/Berlin] ❌ QUERY ERRNO: 1054
[21-Dec-2025 14:28:24 Europe/Berlin] ❌ CLEAN LESSON DATA ERROR: Query prepare failed: Unknown column 'v.lesson_id' in 'field list'
[21-Dec-2025 14:29:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:29:22 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 14:29:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 14:29:22
)

[21-Dec-2025 14:29:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:29:30 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:29:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 14:29:22
    [created_at] => 1766323769
    [last_regeneration] => 1766323769
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766323769
)

[21-Dec-2025 14:29:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 14:29:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 14:29:30 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 14:29:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 14:29:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 14:29:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:29:31 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:29:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:29:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:29:43 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:29:43 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 14:29:22
    [created_at] => 1766323769
    [last_regeneration] => 1766323769
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766323769
)

[21-Dec-2025 14:29:43 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 14:29:43 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 14:29:43 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 14:29:43 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 14:29:43 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 14:29:43 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:29:43 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:29:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:38:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:38:36 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:38:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 14:29:22
    [created_at] => 1766323769
    [last_regeneration] => 1766323769
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766323769
)

[21-Dec-2025 14:38:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 14:38:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 14:38:36 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 14:38:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 14:38:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 14:38:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:38:36 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:38:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:46:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 14:46:52 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 14:46:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 14:29:22
    [created_at] => 1766323769
    [last_regeneration] => 1766323769
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766323769
)

[21-Dec-2025 14:46:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 14:46:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 14:46:53 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 14:46:53 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 14:46:53 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 14:46:53 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 14:46:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:46:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:46:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 14:46:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 14:46:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:46:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 14:46:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:46:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:46:55 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 14:46:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:46:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 14:46:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 14:46:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:02:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:02:06 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:02:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 14:29:22
    [created_at] => 1766323769
    [last_regeneration] => 1766323769
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766323769
)

[21-Dec-2025 15:02:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:02:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:02:06 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:02:06 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:02:06 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:02:06 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:02:06 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:02:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:09:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:09:35 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:09:35 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 14:29:22
    [created_at] => 1766323769
    [last_regeneration] => 1766323769
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766323769
)

[21-Dec-2025 15:09:35 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:09:35 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:09:35 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:09:35 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:09:35 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:09:35 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:09:35 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:09:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:11:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:11:15 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 15:11:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:11:15
)

[21-Dec-2025 15:11:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:11:29 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:11:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:11:15
    [created_at] => 1766326288
    [last_regeneration] => 1766326288
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326288
)

[21-Dec-2025 15:11:29 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:11:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:11:29 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:11:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:11:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:11:29 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:11:30 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:11:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:17:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:17:59 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:17:59 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:11:15
    [created_at] => 1766326288
    [last_regeneration] => 1766326288
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326288
)

[21-Dec-2025 15:17:59 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:17:59 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:18:00 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:18:00 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:18:00 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:18:00 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:18:00 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:18:00 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:19:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:19:21 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 15:19:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
)

[21-Dec-2025 15:19:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:19:46 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:19:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
    [created_at] => 1766326785
    [last_regeneration] => 1766326785
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326785
)

[21-Dec-2025 15:19:46 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:19:46 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:19:46 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:19:46 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:19:46 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:19:46 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:19:46 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:19:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:19:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:19:51 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:19:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
    [created_at] => 1766326785
    [last_regeneration] => 1766326785
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326785
)

[21-Dec-2025 15:19:51 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:19:51 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:19:51 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:19:51 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:19:51 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:19:51 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:19:51 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:19:51 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:19:51 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:19:51 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.lesson_id, v.title, v.description, v.video_url, v.video_path, v.thumbnail, v.duration, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.video_url LIKE 'http%' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.lesson_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:19:51 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:19:51 Europe/Berlin] ❌ QUERY PREPARE FAILED: Unknown column 'v.lesson_id' in 'field list'
[21-Dec-2025 15:19:51 Europe/Berlin] ❌ QUERY ERRNO: 1054
[21-Dec-2025 15:19:51 Europe/Berlin] ❌ CLEAN LESSON DATA ERROR: Query prepare failed: Unknown column 'v.lesson_id' in 'field list'
[21-Dec-2025 15:25:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:25:49 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:25:49 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
    [created_at] => 1766326785
    [last_regeneration] => 1766326785
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326785
)

[21-Dec-2025 15:25:49 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:25:49 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:25:49 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:25:49 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:25:49 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:25:49 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:25:50 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:25:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:25:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:25:52 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:25:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
    [created_at] => 1766326785
    [last_regeneration] => 1766326785
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326785
)

[21-Dec-2025 15:25:54 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:25:54 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:25:54 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:25:54 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:25:54 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:25:54 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:25:54 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:25:54 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:25:54 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:25:54 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.video_path, v.thumbnail, v.duration, v.video_type, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.video_url LIKE 'http%' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:25:54 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:25:54 Europe/Berlin] ❌ QUERY PREPARE FAILED: Unknown column 'v.video_path' in 'field list'
[21-Dec-2025 15:25:54 Europe/Berlin] ❌ QUERY ERRNO: 1054
[21-Dec-2025 15:25:54 Europe/Berlin] ❌ CLEAN LESSON DATA ERROR: Query prepare failed: Unknown column 'v.video_path' in 'field list'
[21-Dec-2025 15:34:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:34:05 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:34:05 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
    [created_at] => 1766326785
    [last_regeneration] => 1766326785
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326785
)

[21-Dec-2025 15:34:05 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:34:05 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:34:07 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:34:07 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:34:07 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:34:07 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:34:08 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:34:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:34:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:34:10 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:34:10 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
    [created_at] => 1766326785
    [last_regeneration] => 1766326785
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326785
)

[21-Dec-2025 15:34:10 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:34:10 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:34:10 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:34:10 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:34:10 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:34:10 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:34:10 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:34:10 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:34:10 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:34:10 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:34:10 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:34:10 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 15:34:10 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 15:34:10 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 15:34:10 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 15:34:10 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 15:34:10 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 15:38:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:38:32 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:38:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
    [created_at] => 1766326785
    [last_regeneration] => 1766326785
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326785
)

[21-Dec-2025 15:38:32 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:38:32 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:38:32 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:38:32 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:38:32 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:38:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:38:32 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:38:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:38:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:38:35 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:38:35 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
    [created_at] => 1766326785
    [last_regeneration] => 1766326785
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326785
)

[21-Dec-2025 15:38:35 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:38:35 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:38:35 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:38:35 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:38:35 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:38:35 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:38:35 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:38:35 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:38:35 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:38:35 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:38:35 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:38:35 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 15:38:35 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 15:38:35 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 15:38:35 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 15:38:35 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 15:38:35 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 15:39:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:39:12 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:39:12 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
    [created_at] => 1766326785
    [last_regeneration] => 1766326785
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326785
)

[21-Dec-2025 15:39:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:39:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:39:12 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:39:12 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:39:12 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:39:13 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:39:13 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:39:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:39:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:39:15 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:39:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:19:21
    [created_at] => 1766326785
    [last_regeneration] => 1766326785
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766326785
)

[21-Dec-2025 15:39:15 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:39:15 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:39:15 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:39:15 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:39:15 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:39:15 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:39:15 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:39:15 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:39:15 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:39:15 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:39:15 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:39:15 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 15:39:15 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 15:39:15 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 15:39:15 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 15:39:15 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 15:39:15 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 15:39:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:39:54 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 15:39:54 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:39:54
)

[21-Dec-2025 15:40:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:40:02 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:40:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:39:54
    [created_at] => 1766328001
    [last_regeneration] => 1766328001
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328001
)

[21-Dec-2025 15:40:02 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:40:02 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:40:02 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:40:02 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:40:02 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:40:02 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:40:03 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:40:03 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:40:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:40:20 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:40:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:39:54
    [created_at] => 1766328001
    [last_regeneration] => 1766328001
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328001
)

[21-Dec-2025 15:40:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:40:20 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:40:20 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:40:20 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:40:20 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:40:20 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:40:20 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:40:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:43:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:43:44 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:43:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:39:54
    [created_at] => 1766328001
    [last_regeneration] => 1766328001
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328001
)

[21-Dec-2025 15:43:44 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:43:44 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:43:44 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:43:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:43:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:43:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:43:44 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:43:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:44:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:44:19 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 15:44:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
)

[21-Dec-2025 15:44:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:44:25 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:44:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
    [created_at] => 1766328264
    [last_regeneration] => 1766328264
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328264
)

[21-Dec-2025 15:44:25 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:44:25 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:44:25 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:44:25 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:44:25 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:44:25 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:44:25 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:44:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:44:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:44:28 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:44:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
    [created_at] => 1766328264
    [last_regeneration] => 1766328264
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328264
)

[21-Dec-2025 15:44:28 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:44:28 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:44:28 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:44:28 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:44:28 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:44:28 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:44:28 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:44:28 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:44:28 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:44:28 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:44:28 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:44:28 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 15:44:28 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 15:44:28 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 15:44:28 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 15:44:28 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 15:44:28 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 15:46:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:46:26 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:46:26 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
    [created_at] => 1766328264
    [last_regeneration] => 1766328264
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328264
)

[21-Dec-2025 15:46:26 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:46:26 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:46:26 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:46:26 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:46:26 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:46:26 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:46:26 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:46:26 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:46:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:46:28 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:46:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
    [created_at] => 1766328264
    [last_regeneration] => 1766328264
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328264
)

[21-Dec-2025 15:46:28 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:46:28 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:46:28 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:46:28 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:46:28 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:46:28 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:46:28 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:46:28 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:46:28 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:46:28 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:46:28 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:46:28 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 15:46:28 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 15:46:28 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 15:46:28 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 15:46:28 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 15:46:28 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 15:53:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:53:52 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:53:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
    [created_at] => 1766328264
    [last_regeneration] => 1766328264
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328264
)

[21-Dec-2025 15:53:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:53:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:53:52 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:53:52 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:53:52 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:53:52 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:53:52 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:53:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:54:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:54:01 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:54:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
    [created_at] => 1766328264
    [last_regeneration] => 1766328264
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328264
)

[21-Dec-2025 15:54:01 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:54:01 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:54:01 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:54:01 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:54:01 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:54:01 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:54:01 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:54:01 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:54:01 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:54:01 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:54:01 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:54:01 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 15:54:01 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 15:54:01 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 15:54:01 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 15:54:01 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 15:54:01 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 15:56:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:56:27 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:56:27 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
    [created_at] => 1766328264
    [last_regeneration] => 1766328264
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328264
)

[21-Dec-2025 15:56:27 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:56:28 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:56:28 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:56:28 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:56:28 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:56:28 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:56:28 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:56:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:56:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:56:29 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:56:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
    [created_at] => 1766328264
    [last_regeneration] => 1766328264
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328264
)

[21-Dec-2025 15:56:29 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:56:29 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:56:29 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:56:29 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:56:29 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:56:29 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:56:29 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:56:29 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:56:29 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:56:29 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:56:29 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:56:29 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 15:56:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 15:56:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 15:56:29 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 15:56:29 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 15:56:29 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 15:56:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:56:36 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:56:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
    [created_at] => 1766328264
    [last_regeneration] => 1766328264
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328264
)

[21-Dec-2025 15:56:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:56:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:56:36 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:56:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:56:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:56:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:56:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:56:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:56:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:56:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:56:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:56:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:56:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:56:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:56:37 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:56:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:56:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:56:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:56:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:56:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:56:38 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:56:38 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:44:19
    [created_at] => 1766328264
    [last_regeneration] => 1766328264
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766328264
)

[21-Dec-2025 15:56:38 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:56:38 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:56:38 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:56:38 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:56:38 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:56:38 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:56:38 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:56:38 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:56:38 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:56:38 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:56:38 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:56:38 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 15:56:38 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 15:56:38 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 15:56:38 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 15:56:38 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 15:56:38 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 15:57:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:57:31 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 15:57:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:57:31
)

[21-Dec-2025 15:57:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:57:37 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:57:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:57:31
    [created_at] => 1766329056
    [last_regeneration] => 1766329056
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766329056
)

[21-Dec-2025 15:57:37 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 15:57:37 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 15:57:37 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 15:57:37 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 15:57:37 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 15:57:37 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:57:37 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:57:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 15:57:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 15:57:39 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 15:57:39 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:57:31
    [created_at] => 1766329056
    [last_regeneration] => 1766329056
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766329056
)

[21-Dec-2025 15:57:39 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:57:39 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 15:57:39 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 15:57:39 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 15:57:39 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 15:57:39 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 15:57:39 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 15:57:39 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 15:57:39 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 15:57:39 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 15:57:39 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 15:57:39 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 15:57:39 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 15:57:39 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 15:57:39 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 15:57:39 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 15:57:39 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 16:01:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:01:59 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:01:59 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:57:31
    [created_at] => 1766329056
    [last_regeneration] => 1766329056
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766329056
)

[21-Dec-2025 16:01:59 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 16:02:00 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 16:02:00 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 16:02:00 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 16:02:00 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 16:02:01 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:02:01 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:02:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:02:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:02:05 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:02:05 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 15:57:31
    [created_at] => 1766329056
    [last_regeneration] => 1766329056
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766329056
)

[21-Dec-2025 16:02:05 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:02:05 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:02:05 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 16:02:05 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 16:02:05 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 16:02:05 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 16:02:05 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 16:02:05 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 16:02:05 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 16:02:05 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 16:02:05 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 16:02:05 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 16:02:05 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 16:02:05 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 16:02:05 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 16:02:05 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 16:02:05 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 16:02:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:02:23 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 16:02:23 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:02:23
)

[21-Dec-2025 16:02:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:02:31 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:02:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:02:23
    [created_at] => 1766329351
    [last_regeneration] => 1766329351
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766329351
)

[21-Dec-2025 16:02:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 16:02:32 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 16:02:32 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 16:02:32 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 16:02:32 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 16:02:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 16:02:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:02:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:02:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:02:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:02:33 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:02:33 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:02:33 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:02:33 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:02:33 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:02:33 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:02:33 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:02:33 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:02:33 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:02:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:02:34 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:02:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:02:23
    [created_at] => 1766329351
    [last_regeneration] => 1766329351
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766329351
)

[21-Dec-2025 16:02:34 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:02:34 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:02:34 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 16:02:34 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 16:02:34 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 16:02:34 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 16:02:34 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 16:02:34 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 16:02:34 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 16:02:34 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 16:02:34 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 16:02:35 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 16:02:35 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 16:02:35 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 16:02:35 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 16:02:35 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 16:02:35 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 16:03:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:03:58 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:03:58 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:02:23
    [created_at] => 1766329351
    [last_regeneration] => 1766329351
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766329351
)

[21-Dec-2025 16:03:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 16:03:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 16:03:58 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 16:03:58 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 16:03:58 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 16:03:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:03:59 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:03:59 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:04:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:04:00 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:04:00 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:02:23
    [created_at] => 1766329351
    [last_regeneration] => 1766329351
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766329351
)

[21-Dec-2025 16:04:00 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:04:00 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:04:00 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 16:04:00 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 16:04:00 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 16:04:00 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 16:04:00 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 16:04:00 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 16:04:00 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 16:04:00 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 16:04:00 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 16:04:00 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 16:04:00 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 16:04:00 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 16:04:00 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 16:04:00 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 16:04:00 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 16:12:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:12:52 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:12:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:02:23
    [created_at] => 1766329351
    [last_regeneration] => 1766329351
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766329351
)

[21-Dec-2025 16:12:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 16:12:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 16:12:52 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 16:12:52 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 16:12:52 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 16:12:52 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:12:53 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:12:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:12:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:12:56 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:12:56 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:02:23
    [created_at] => 1766329351
    [last_regeneration] => 1766329351
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766329351
)

[21-Dec-2025 16:12:56 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:12:56 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:12:56 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 16:12:56 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 16:12:56 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 16:12:56 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 16:12:56 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 16:12:56 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 16:12:56 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 16:12:56 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 16:12:56 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 16:12:56 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 16:12:56 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 16:12:56 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 16:12:56 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 16:12:56 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 16:12:56 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 16:13:43 Europe/Berlin] DEBUG - Session data: []
[21-Dec-2025 16:13:43 Europe/Berlin] DEBUG - POST data: {"video_id":"47","user_id":"45","completion_percentage":"100.00","completed_at":"2025-12-21 15:13:45"}
[21-Dec-2025 16:14:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:14:21 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 16:14:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
)

[21-Dec-2025 16:14:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:14:51 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:14:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:14:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 16:14:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 16:14:51 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 16:14:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 16:14:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 16:14:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 16:14:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:14:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:14:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:14:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:14:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:14:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:14:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:14:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:14:52 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:14:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:14:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:14:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:14:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:14:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:14:56 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:14:56 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:14:56 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:14:56 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:14:56 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 16:14:56 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 16:14:56 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 16:14:56 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 16:14:56 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 16:14:56 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 16:14:56 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 16:14:56 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 16:14:56 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 16:14:56 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 16:14:56 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 16:14:56 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 16:14:56 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 16:14:56 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 16:14:56 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 16:15:43 Europe/Berlin] DEBUG - Session data: []
[21-Dec-2025 16:15:43 Europe/Berlin] DEBUG - POST data: {"video_id":"47","user_id":"45","completion_percentage":"100.00","completed_at":"2025-12-21 15:15:45"}
[21-Dec-2025 16:22:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:22:55 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:22:55 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:22:55 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 16:22:55 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 16:22:55 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 16:22:55 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 16:22:55 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 16:22:55 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:22:55 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:22:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:22:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:22:58 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:22:58 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:22:58 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:22:58 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:22:58 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 16:22:58 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 16:22:58 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 16:22:58 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 16:22:58 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 16:22:58 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 16:22:58 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 16:22:58 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 16:22:58 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 16:22:58 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 16:22:58 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 16:22:58 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 16:22:58 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 16:22:58 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 16:22:58 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 16:23:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:23:44 Europe/Berlin] DEBUG - Session data: {"session_started_at":"2025-12-21 16:14:21","created_at":1766330090,"last_regeneration":1766330090,"stored_redirect":"\/student\/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47","redirect_to_cart":false,"user_id":45,"username":"kanicl","email":"swususan0@gmail.com","first_name":"Brian","last_name":"Kan","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1766330090}
[21-Dec-2025 16:23:44 Europe/Berlin] DEBUG - POST data: {"video_id":"47","user_id":"45","completion_percentage":"100.00","completed_at":"2025-12-21 15:23:46"}
[21-Dec-2025 16:24:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:24:37 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:24:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:24:37 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 16:24:37 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 16:24:37 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 16:24:37 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 16:24:37 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 16:24:37 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:24:37 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:24:37 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:24:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:24:39 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:24:39 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:24:39 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:24:39 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:24:39 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 16:24:39 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 16:24:39 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 16:24:39 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 16:24:39 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 16:24:39 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 16:24:39 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 16:24:39 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 16:24:39 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 16:24:39 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 16:24:39 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 16:24:39 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 16:24:39 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 16:24:39 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 16:24:39 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 16:32:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:32:49 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:32:49 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:32:49 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 16:32:49 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 16:32:49 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 16:32:49 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 16:32:49 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 16:32:49 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:32:49 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:32:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:32:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:32:50 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:32:50 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:32:50 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:32:50 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:32:50 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 16:32:50 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 16:32:50 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 16:32:50 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 16:32:50 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 16:32:50 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 16:32:50 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 16:32:50 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 16:32:50 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 16:32:50 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 16:32:50 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 16:32:50 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 16:32:50 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 16:32:50 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 16:32:50 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 16:39:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:39:06 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:39:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:39:09 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 16:39:09 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 16:39:11 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 16:39:11 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 16:39:11 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 16:39:11 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:39:14 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:39:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:39:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:39:17 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:39:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:39:17 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:39:17 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:39:17 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 16:39:17 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 16:39:17 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 16:39:17 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 16:39:17 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 16:39:17 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 16:39:17 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 16:39:17 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 16:39:17 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 16:39:17 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 16:39:18 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 16:39:18 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 16:39:18 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 16:39:18 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 16:39:18 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 16:39:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:39:44 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:39:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:39:44 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 16:39:44 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 16:39:44 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 16:39:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 16:39:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 16:39:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:39:44 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:39:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 16:39:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 16:39:45 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 16:39:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 16:14:21
    [created_at] => 1766330090
    [last_regeneration] => 1766330090
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766330090
)

[21-Dec-2025 16:39:45 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:39:45 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 16:39:45 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 16:39:45 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 16:39:45 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 16:39:45 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 16:39:45 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 16:39:45 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 16:39:45 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 16:39:45 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 16:39:45 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 16:39:45 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 16:39:45 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 16:39:45 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 16:39:45 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 16:39:45 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 16:39:45 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 17:21:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 17:21:08 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 17:21:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 17:21:08
)

[21-Dec-2025 17:21:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 17:21:15 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 17:21:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 17:21:08
    [created_at] => 1766334074
    [last_regeneration] => 1766334074
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766334074
)

[21-Dec-2025 17:21:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 17:21:15 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 17:21:15 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 17:21:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 17:21:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 17:21:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 17:21:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 17:21:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 17:21:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 17:21:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 17:21:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 17:21:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 17:21:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 17:21:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 17:21:16 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 17:21:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 17:21:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 17:21:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 17:21:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 17:21:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 17:21:17 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 17:21:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 17:21:08
    [created_at] => 1766334074
    [last_regeneration] => 1766334074
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766334074
)

[21-Dec-2025 17:21:17 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 17:21:17 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 17:21:17 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 17:21:17 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 17:21:17 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 17:21:17 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 17:21:17 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 17:21:17 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 17:21:17 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 17:21:17 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 17:21:17 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 17:21:17 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 17:21:17 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 17:21:17 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 17:21:17 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 17:21:17 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 17:21:17 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 17:35:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 17:35:20 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 17:35:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 17:21:08
    [created_at] => 1766334074
    [last_regeneration] => 1766334074
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766334074
)

[21-Dec-2025 17:35:21 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 17:35:21 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 17:35:21 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 17:35:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 17:35:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 17:35:21 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 17:35:24 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 17:35:24 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 17:35:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 17:35:26 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 17:35:26 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 17:21:08
    [created_at] => 1766334074
    [last_regeneration] => 1766334074
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766334074
)

[21-Dec-2025 17:35:26 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 17:35:26 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 17:35:26 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 17:35:26 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 17:35:26 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 17:35:26 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 17:35:26 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 17:35:26 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 17:35:26 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 17:35:26 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 17:35:26 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 17:35:26 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 17:35:26 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 17:35:26 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 17:35:26 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 17:35:26 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 17:35:26 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 17:35:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 17:35:59 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 17:35:59 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 17:35:59
)

[21-Dec-2025 17:36:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 17:36:06 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 17:36:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 17:35:59
    [created_at] => 1766334964
    [last_regeneration] => 1766334964
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766334964
)

[21-Dec-2025 17:36:07 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 17:36:07 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 17:36:07 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 17:36:07 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 17:36:07 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 17:36:07 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 17:36:08 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 17:36:08 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 17:36:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 17:36:10 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 17:36:10 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 17:35:59
    [created_at] => 1766334964
    [last_regeneration] => 1766334964
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766334964
)

[21-Dec-2025 17:36:10 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 17:36:10 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 17:36:10 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 17:36:10 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 17:36:10 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 17:36:10 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 17:36:10 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 17:36:10 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 17:36:10 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 17:36:10 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 17:36:10 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 17:36:10 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 17:36:10 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 17:36:10 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 17:36:10 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 17:36:10 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 17:36:10 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 18:12:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:12:40 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:12:40 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 17:35:59
    [created_at] => 1766334964
    [last_regeneration] => 1766334964
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766334964
)

[21-Dec-2025 18:12:40 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 18:12:40 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 18:12:40 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 18:12:40 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 18:12:40 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 18:12:40 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:12:40 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:12:40 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:12:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:12:42 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:12:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 17:35:59
    [created_at] => 1766334964
    [last_regeneration] => 1766334964
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766334964
)

[21-Dec-2025 18:12:42 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:12:42 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:12:42 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 18:12:42 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 18:12:42 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 18:12:42 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 18:12:42 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 18:12:42 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 18:12:42 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 18:12:42 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 18:12:42 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 18:12:42 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 18:12:42 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 18:12:42 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 18:12:42 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 18:12:42 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 18:12:42 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 18:13:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:13:13 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 18:13:13 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:13:13
)

[21-Dec-2025 18:13:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:13:22 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:13:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:13:13
    [created_at] => 1766337201
    [last_regeneration] => 1766337201
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766337201
)

[21-Dec-2025 18:13:23 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 18:13:23 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 18:13:24 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 18:13:24 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 18:13:24 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 18:13:25 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:13:27 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:13:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:13:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:13:29 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:13:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:13:13
    [created_at] => 1766337201
    [last_regeneration] => 1766337201
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766337201
)

[21-Dec-2025 18:13:29 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:13:29 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:13:29 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 18:13:29 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 18:13:29 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 18:13:29 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 18:13:29 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 18:13:29 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 18:13:29 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 18:13:29 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 18:13:29 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 18:13:29 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 18:13:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 18:13:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 18:13:29 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 18:13:29 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 18:13:29 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 18:14:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:14:45 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:14:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:13:13
    [created_at] => 1766337201
    [last_regeneration] => 1766337201
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766337201
)

[21-Dec-2025 18:14:45 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 18:14:45 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 18:14:46 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 18:14:46 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 18:14:46 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 18:14:46 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:14:46 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:14:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:14:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:14:48 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:14:48 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:13:13
    [created_at] => 1766337201
    [last_regeneration] => 1766337201
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766337201
)

[21-Dec-2025 18:14:48 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:14:48 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:14:48 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 18:14:48 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 18:14:48 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 18:14:48 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 18:14:48 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 18:14:48 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 18:14:48 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 18:14:48 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 18:14:48 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 18:14:48 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 18:14:48 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 18:14:48 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 18:14:48 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 18:14:48 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 18:14:48 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 18:15:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:15:21 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 18:15:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:15:21
)

[21-Dec-2025 18:15:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:15:27 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:15:27 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:15:21
    [created_at] => 1766337325
    [last_regeneration] => 1766337325
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766337325
)

[21-Dec-2025 18:15:27 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 18:15:28 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 18:15:29 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 18:15:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 18:15:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[21-Dec-2025 18:15:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:15:30 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:15:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:15:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:15:32 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:15:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:15:21
    [created_at] => 1766337325
    [last_regeneration] => 1766337325
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766337325
)

[21-Dec-2025 18:15:32 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:15:32 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:15:32 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 18:15:32 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 18:15:32 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 18:15:32 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 18:15:32 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 18:15:32 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 18:15:32 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 18:15:32 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 18:15:32 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 18:15:32 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 18:15:32 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 18:15:32 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 18:15:32 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 18:15:32 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 18:15:32 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 18:16:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:16:14 Europe/Berlin] DEBUG - Session data: {"session_started_at":"2025-12-21 18:15:21","created_at":1766337325,"last_regeneration":1766337325,"stored_redirect":"\/student\/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47","redirect_to_cart":false,"user_id":45,"username":"kanicl","email":"swususan0@gmail.com","first_name":"Brian","last_name":"Kan","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1766337325}
[21-Dec-2025 18:16:14 Europe/Berlin] DEBUG - POST data: {"video_id":"47","user_id":"45","completion_percentage":"100.00","completed_at":"2025-12-21 17:16:16"}
[21-Dec-2025 18:24:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:24:43 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:24:43 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:15:21
    [created_at] => 1766337325
    [last_regeneration] => 1766337325
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766337325
)

[21-Dec-2025 18:24:43 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 18:24:43 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 18:24:44 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 18:24:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 18:24:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[21-Dec-2025 18:24:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[21-Dec-2025 18:24:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:24:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:24:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:24:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:24:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:24:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:24:45 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:24:45 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:24:45 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:24:45 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:24:45 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:24:45 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:24:45 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:24:45 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:24:45 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:24:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:24:46 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:24:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:15:21
    [created_at] => 1766337325
    [last_regeneration] => 1766337325
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766337325
)

[21-Dec-2025 18:24:46 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:24:46 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:24:46 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 18:24:46 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 18:24:46 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 18:24:46 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 18:24:46 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 18:24:46 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 18:24:46 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 18:24:46 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 18:24:46 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 18:24:46 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 18:24:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 18:24:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 18:24:46 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 18:24:46 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 18:24:46 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 18:40:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:40:33 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:40:33 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:15:21
    [created_at] => 1766337325
    [last_regeneration] => 1766337325
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766337325
)

[21-Dec-2025 18:40:35 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 18:40:37 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 18:40:40 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 18:40:40 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 18:40:40 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[21-Dec-2025 18:40:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:40:46 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:40:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:40:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:40:49 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:40:49 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:15:21
    [created_at] => 1766337325
    [last_regeneration] => 1766337325
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766337325
)

[21-Dec-2025 18:40:49 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:40:49 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:40:49 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 18:40:49 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 18:40:49 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 18:40:49 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 18:40:49 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 18:40:49 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 18:40:49 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 18:40:49 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 18:40:49 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 18:40:49 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 18:40:49 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 18:40:49 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 18:40:49 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 18:40:49 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 18:40:49 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 18:41:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:41:46 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 18:41:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:41:46
)

[21-Dec-2025 18:41:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:41:56 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:41:56 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:41:46
    [created_at] => 1766338912
    [last_regeneration] => 1766338912
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766338912
)

[21-Dec-2025 18:41:56 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 18:41:57 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 18:41:59 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 18:41:59 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 18:41:59 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[21-Dec-2025 18:41:59 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:42:00 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:42:00 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:42:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:42:02 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:42:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:41:46
    [created_at] => 1766338912
    [last_regeneration] => 1766338912
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766338912
)

[21-Dec-2025 18:42:02 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:42:02 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:42:02 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 18:42:02 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 18:42:02 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 18:42:02 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 18:42:02 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 18:42:02 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 18:42:02 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 18:42:02 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 18:42:02 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 18:42:03 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 18:42:03 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 18:42:03 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 18:42:03 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 18:42:03 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 18:42:03 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 18:49:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:49:17 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:49:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:41:46
    [created_at] => 1766338912
    [last_regeneration] => 1766338912
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766338912
)

[21-Dec-2025 18:49:19 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 18:49:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 18:49:20 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 18:49:20 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 18:49:20 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[21-Dec-2025 18:49:20 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:49:21 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:49:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:49:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:49:38 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:49:38 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:41:46
    [created_at] => 1766338912
    [last_regeneration] => 1766338912
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766338912
)

[21-Dec-2025 18:49:38 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[21-Dec-2025 18:49:38 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[21-Dec-2025 18:49:39 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[21-Dec-2025 18:49:39 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[21-Dec-2025 18:49:39 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[21-Dec-2025 18:49:40 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[21-Dec-2025 18:49:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:49:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:49:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:49:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:49:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[21-Dec-2025 18:49:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[21-Dec-2025 18:49:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:49:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[21-Dec-2025 18:49:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:49:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:49:41 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[21-Dec-2025 18:49:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:49:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[21-Dec-2025 18:49:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:49:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[21-Dec-2025 18:50:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 18:50:15 Europe/Berlin] isLoggedIn check result: true
[21-Dec-2025 18:50:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 18:41:46
    [created_at] => 1766338912
    [last_regeneration] => 1766338912
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766338912
)

[21-Dec-2025 18:50:15 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:50:15 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[21-Dec-2025 18:50:15 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[21-Dec-2025 18:50:15 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[21-Dec-2025 18:50:15 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[21-Dec-2025 18:50:15 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[21-Dec-2025 18:50:15 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[21-Dec-2025 18:50:15 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[21-Dec-2025 18:50:15 Europe/Berlin] 🔍 DATABASE: Connection error: 
[21-Dec-2025 18:50:15 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[21-Dec-2025 18:50:15 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[21-Dec-2025 18:50:15 Europe/Berlin] ✅ QUERY: Successfully prepared
[21-Dec-2025 18:50:15 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[21-Dec-2025 18:50:15 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[21-Dec-2025 18:50:15 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[21-Dec-2025 18:50:15 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[21-Dec-2025 18:50:15 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[21-Dec-2025 23:45:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Dec-2025 23:45:52 Europe/Berlin] isLoggedIn check result: false
[21-Dec-2025 23:45:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-21 23:45:52
)

[22-Dec-2025 05:17:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 05:17:17 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 05:17:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 05:17:17
)

[22-Dec-2025 06:24:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:24:26 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:24:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
)

[22-Dec-2025 06:24:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:24:26 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:24:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:24:26 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 120
[22-Dec-2025 06:24:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:24:37 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:24:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:24:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:24:45 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:24:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:24:45 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 06:24:45 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 06:24:45 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 06:24:45 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 06:24:45 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 06:24:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:24:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:24:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:24:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:24:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:24:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:24:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:24:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:24:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:24:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:24:46 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:24:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:24:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:24:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:24:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:24:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:24:49 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:24:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:24:49 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:24:49 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:24:49 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 06:24:49 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 06:24:49 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 06:24:49 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 06:24:49 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 06:24:49 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 06:24:49 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 06:24:49 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 06:24:49 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 06:24:49 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 06:24:49 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 06:24:49 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 06:24:49 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 06:24:49 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 06:24:49 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 06:24:49 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 06:25:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:25:12 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:25:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:25:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 06:25:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 06:25:12 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 06:25:12 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 06:25:12 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 06:25:12 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:25:12 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:25:12 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:25:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:25:14 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:25:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:25:14 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:25:14 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:25:14 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 06:25:14 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 06:25:14 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 06:25:14 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 06:25:14 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 06:25:14 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 06:25:14 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 06:25:14 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 06:25:14 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 06:25:14 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 06:25:14 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 06:25:14 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 06:25:14 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 06:25:14 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 06:25:14 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 06:25:14 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 06:26:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:26:42 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:26:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:26:43 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 06:26:43 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 06:26:44 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[22-Dec-2025 06:26:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[22-Dec-2025 06:26:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 06:26:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:26:44 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:26:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:26:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:26:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:26:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:26:46 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:26:46 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:26:46 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 06:26:46 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 06:26:46 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 06:26:46 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 06:26:46 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 06:26:46 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 06:26:46 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 06:26:46 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 06:26:46 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 06:26:46 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 06:26:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 06:26:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 06:26:46 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 06:26:46 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 06:26:46 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 06:27:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:27:06 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:27:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:27:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 06:27:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 06:27:06 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 8
[22-Dec-2025 06:27:06 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 06:27:06 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 06:27:06 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:27:06 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:27:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:27:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:27:08 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:27:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:27:08 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:27:08 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:27:08 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 06:27:08 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 06:27:08 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 8
[22-Dec-2025 06:27:08 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 8
[22-Dec-2025 06:27:08 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=8
[22-Dec-2025 06:27:08 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 06:27:08 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 06:27:08 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 06:27:08 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 8
[22-Dec-2025 06:27:08 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 06:27:08 Europe/Berlin] ❌ CLEAN LESSON DATA ERROR: Lesson not found
[22-Dec-2025 06:27:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:27:15 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:27:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:27:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 06:27:15 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 06:27:15 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 48
[22-Dec-2025 06:27:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 06:27:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 06:27:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:27:16 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:27:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:27:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:27:18 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:27:18 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:27:18 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:27:18 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:27:18 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 06:27:18 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 06:27:18 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 48
[22-Dec-2025 06:27:18 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 48
[22-Dec-2025 06:27:18 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=48
[22-Dec-2025 06:27:18 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 06:27:18 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 06:27:18 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 06:27:18 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 48
[22-Dec-2025 06:27:18 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 06:27:18 Europe/Berlin] ❌ CLEAN LESSON DATA ERROR: Lesson not found
[22-Dec-2025 06:27:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:27:24 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:27:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:27:25 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 06:27:25 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 06:27:25 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[22-Dec-2025 06:27:25 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[22-Dec-2025 06:27:25 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 06:27:25 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:27:25 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:27:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:27:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:27:27 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:27:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:27:27 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:27:27 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:27:27 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 06:27:27 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 06:27:27 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 06:27:27 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 06:27:27 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 06:27:27 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 06:27:27 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 06:27:27 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 06:27:27 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 06:27:27 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 06:27:27 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 06:27:27 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 06:27:27 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 06:27:27 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 06:27:27 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 06:57:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:57:25 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:57:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:57:27 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 06:57:27 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 06:57:30 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[22-Dec-2025 06:57:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[22-Dec-2025 06:57:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 06:57:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:57:30 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:57:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 06:57:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 06:57:34 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 06:57:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 06:57:34 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:57:34 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 06:57:34 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 06:57:34 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 06:57:34 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 06:57:34 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 06:57:34 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 06:57:34 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 06:57:34 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 06:57:34 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 06:57:34 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 06:57:34 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 06:57:34 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 06:57:34 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 06:57:34 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 06:57:34 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 06:57:34 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 07:06:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:06:04 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:06:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 07:06:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:06:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:06:07 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[22-Dec-2025 07:06:07 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[22-Dec-2025 07:06:07 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:06:07 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:06:07 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:06:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:06:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:06:10 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:06:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766381065
    [last_regeneration] => 1766381065
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766381065
    [session_started_at] => 2025-12-22 06:24:26
    [cart] => Array
        (
        )

)

[22-Dec-2025 07:06:10 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:06:10 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:06:10 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:06:10 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:06:10 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 07:06:10 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 07:06:10 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 07:06:10 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:06:10 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:06:10 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:06:10 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 07:06:10 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:06:10 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 07:06:10 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:06:10 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 07:06:10 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 07:06:10 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 07:08:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:08:37 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 07:08:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:08:37
)

[22-Dec-2025 07:08:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:08:50 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:08:50 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:08:37
    [created_at] => 1766383726
    [last_regeneration] => 1766383726
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766383726
)

[22-Dec-2025 07:08:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:08:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:08:54 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[22-Dec-2025 07:08:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[22-Dec-2025 07:08:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:08:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:09:01 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:09:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:09:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:09:04 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:09:04 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:08:37
    [created_at] => 1766383726
    [last_regeneration] => 1766383726
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766383726
)

[22-Dec-2025 07:09:04 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:09:04 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:09:04 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:09:04 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:09:04 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 07:09:04 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 07:09:04 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 07:09:04 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:09:04 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:09:04 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:09:04 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 07:09:04 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:09:04 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 07:09:04 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:09:04 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 07:09:04 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 07:09:04 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 07:10:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:10:17 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:10:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:08:37
    [created_at] => 1766383726
    [last_regeneration] => 1766383726
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766383726
)

[22-Dec-2025 07:10:18 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:10:18 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:10:18 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:10:18 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:10:18 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:10:18 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:10:19 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:10:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:10:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:10:21 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:10:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:08:37
    [created_at] => 1766383726
    [last_regeneration] => 1766383726
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766383726
)

[22-Dec-2025 07:10:21 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:10:21 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:10:21 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:10:21 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:10:21 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:10:21 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:10:21 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:10:21 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:10:21 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:10:21 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:10:21 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:10:21 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:10:21 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:10:21 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:10:21 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:10:21 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:10:21 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:10:21 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 07:23:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:23:20 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:23:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:08:37
    [created_at] => 1766383726
    [last_regeneration] => 1766383726
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766383726
)

[22-Dec-2025 07:23:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:23:20 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:23:20 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:23:20 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:23:20 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:23:20 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:23:20 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:23:20 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:23:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:23:24 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:23:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:08:37
    [created_at] => 1766383726
    [last_regeneration] => 1766383726
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=47
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766383726
)

[22-Dec-2025 07:23:24 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:23:24 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:23:24 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:23:24 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:23:24 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:23:24 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:23:24 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:23:24 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:23:24 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:23:24 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:23:24 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:23:24 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:23:24 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:23:24 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:23:24 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:23:24 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:23:24 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:23:24 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 07:24:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:24:24 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 07:24:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:24:24
)

[22-Dec-2025 07:24:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:24:31 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:24:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:24:24
    [created_at] => 1766384669
    [last_regeneration] => 1766384669
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766384669
)

[22-Dec-2025 07:24:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:24:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:24:31 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:24:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:24:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:24:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:24:31 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:24:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:24:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:24:35 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:24:35 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:24:24
    [created_at] => 1766384669
    [last_regeneration] => 1766384669
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766384669
)

[22-Dec-2025 07:24:35 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:24:35 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:24:35 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:24:35 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:24:35 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:24:35 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:24:35 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:24:35 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:24:35 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:24:35 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:24:35 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:24:35 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:24:35 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:24:35 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:24:35 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:24:35 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:24:35 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:24:35 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 07:28:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:28:51 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:28:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:24:24
    [created_at] => 1766384669
    [last_regeneration] => 1766384669
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766384669
)

[22-Dec-2025 07:28:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:28:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:28:51 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:28:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:28:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:28:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:28:51 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:28:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:28:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:28:54 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:28:54 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:24:24
    [created_at] => 1766384669
    [last_regeneration] => 1766384669
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766384669
)

[22-Dec-2025 07:28:54 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:28:54 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:28:54 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:28:54 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:28:54 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:28:54 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:28:54 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:28:54 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:28:54 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:28:54 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:28:54 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:28:54 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:28:54 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:28:54 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:28:54 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:28:54 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:28:54 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:28:54 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 07:29:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:29:34 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 07:29:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:29:34
)

[22-Dec-2025 07:29:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:29:41 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:29:41 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:29:34
    [created_at] => 1766384980
    [last_regeneration] => 1766384980
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766384980
)

[22-Dec-2025 07:29:41 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:29:41 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:29:41 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:29:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:29:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:29:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:29:41 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:29:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:29:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:29:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:29:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:29:34
    [created_at] => 1766384980
    [last_regeneration] => 1766384980
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766384980
)

[22-Dec-2025 07:29:44 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:29:44 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:29:44 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:29:44 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:29:44 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:29:44 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:29:44 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:29:44 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:29:44 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:29:44 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:29:44 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:29:44 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:29:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:29:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:29:44 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:29:44 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:29:44 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:29:44 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 07:37:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:37:58 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:37:58 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:29:34
    [created_at] => 1766384980
    [last_regeneration] => 1766384980
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766384980
)

[22-Dec-2025 07:37:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:37:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:37:58 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:37:58 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:37:58 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:37:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:37:58 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:37:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:38:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:38:01 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:38:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:29:34
    [created_at] => 1766384980
    [last_regeneration] => 1766384980
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766384980
)

[22-Dec-2025 07:38:01 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:38:01 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:38:01 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:38:01 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:38:01 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:38:01 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:38:01 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:38:01 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:38:01 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:38:01 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:38:01 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:38:01 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:38:01 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:38:01 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:38:01 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:38:01 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:38:01 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:38:01 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 07:38:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:38:56 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 07:38:56 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:38:56
)

[22-Dec-2025 07:39:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:39:03 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:39:03 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:38:56
    [created_at] => 1766385542
    [last_regeneration] => 1766385542
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766385542
)

[22-Dec-2025 07:39:04 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:39:05 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:39:05 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:39:05 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:39:05 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:39:06 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:39:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:39:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:39:07 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:39:07 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:39:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:39:12 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:39:12 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:38:56
    [created_at] => 1766385542
    [last_regeneration] => 1766385542
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766385542
)

[22-Dec-2025 07:39:12 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:39:12 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:39:12 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:39:12 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:39:12 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:39:12 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:39:12 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:39:12 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:39:12 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:39:12 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:39:12 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:39:12 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:39:12 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:39:12 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:39:12 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:39:12 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:39:12 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:39:12 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 07:48:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:48:42 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:48:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:38:56
    [created_at] => 1766385542
    [last_regeneration] => 1766385542
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766385542
)

[22-Dec-2025 07:48:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:48:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:48:42 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:48:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:48:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:48:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:48:43 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:48:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:48:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:48:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:48:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:38:56
    [created_at] => 1766385542
    [last_regeneration] => 1766385542
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766385542
)

[22-Dec-2025 07:48:46 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:48:46 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:48:46 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:48:46 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:48:46 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:48:46 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:48:46 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:48:46 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:48:46 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:48:46 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:48:46 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:48:46 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:48:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:48:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:48:46 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:48:46 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:48:46 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:48:46 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 07:49:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:49:28 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 07:49:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:49:28
)

[22-Dec-2025 07:49:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:49:50 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:49:50 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:49:28
    [created_at] => 1766386189
    [last_regeneration] => 1766386189
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386189
)

[22-Dec-2025 07:49:50 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:49:50 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:49:50 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:49:50 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:49:50 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:49:50 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1268
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1365
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2540
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:49:50 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2728
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2732
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:49:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2751
[22-Dec-2025 07:49:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:49:52 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:49:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:49:28
    [created_at] => 1766386189
    [last_regeneration] => 1766386189
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386189
)

[22-Dec-2025 07:49:52 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:49:52 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:49:52 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:49:52 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:49:52 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:49:52 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:49:52 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:49:52 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:49:52 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:49:52 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:49:52 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:49:52 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:49:53 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:49:53 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:49:53 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:49:53 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:49:53 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:49:53 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 07:58:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:58:57 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:58:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:49:28
    [created_at] => 1766386189
    [last_regeneration] => 1766386189
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386189
)

[22-Dec-2025 07:58:57 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:58:57 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:58:57 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:58:57 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:58:57 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:58:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1286
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1383
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1286
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1383
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1286
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1383
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2558
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2558
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2746
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2746
[22-Dec-2025 07:58:58 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2746
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2750
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2750
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[22-Dec-2025 07:58:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[22-Dec-2025 07:59:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:59:01 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:59:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:49:28
    [created_at] => 1766386189
    [last_regeneration] => 1766386189
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386189
)

[22-Dec-2025 07:59:01 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:59:01 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:59:01 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:59:01 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:59:01 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:59:01 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:59:01 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:59:01 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:59:01 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:59:01 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:59:01 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:59:01 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:59:01 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:59:01 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:59:01 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:59:01 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:59:01 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:59:01 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 07:59:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:59:21 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 07:59:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
)

[22-Dec-2025 07:59:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:59:28 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:59:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 07:59:29 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 07:59:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 07:59:29 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 07:59:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 07:59:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 07:59:29 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1286
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1383
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1286
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1383
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1286
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1383
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2558
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2558
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2746
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2746
[22-Dec-2025 07:59:30 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2746
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2750
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2750
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[22-Dec-2025 07:59:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[22-Dec-2025 07:59:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 07:59:32 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 07:59:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 07:59:32 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:59:32 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 07:59:32 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 07:59:32 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 07:59:32 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 07:59:32 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 07:59:32 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 07:59:32 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 07:59:32 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 07:59:32 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 07:59:32 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 07:59:32 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 07:59:32 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:59:32 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 07:59:32 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 07:59:32 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:59:32 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 07:59:32 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:08:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:08:07 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:08:07 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:08:07 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:08:07 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:08:09 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:08:09 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:08:09 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 08:08:09 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1295
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1392
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1295
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1392
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1295
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1392
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2567
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2567
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2755
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2755
[22-Dec-2025 08:08:09 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2755
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2759
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2759
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2778
[22-Dec-2025 08:08:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2778
[22-Dec-2025 08:08:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:08:11 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:08:11 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:08:11 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:08:11 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:08:11 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:08:11 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:08:11 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:08:11 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:08:11 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:08:11 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:08:11 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:08:11 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:08:11 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:08:11 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:08:11 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:08:11 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:08:11 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:08:11 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:08:11 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:08:11 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:11:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:11:41 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:11:41 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:11:41 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:11:41 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:11:41 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:11:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:11:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 08:11:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 08:11:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1305
[22-Dec-2025 08:11:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1402
[22-Dec-2025 08:11:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1305
[22-Dec-2025 08:11:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1402
[22-Dec-2025 08:11:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1305
[22-Dec-2025 08:11:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1402
[22-Dec-2025 08:11:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[22-Dec-2025 08:11:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[22-Dec-2025 08:11:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 08:11:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 08:11:42 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 08:11:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[22-Dec-2025 08:11:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[22-Dec-2025 08:11:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[22-Dec-2025 08:11:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[22-Dec-2025 08:11:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:11:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:11:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:11:44 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:11:44 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:11:44 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:11:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:11:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 08:11:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1305
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1402
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1305
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1402
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1305
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1402
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2577
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 08:11:44 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2769
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[22-Dec-2025 08:11:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2788
[22-Dec-2025 08:11:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:11:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:11:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:11:46 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:11:46 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:11:46 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:11:46 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:11:46 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:11:46 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:11:46 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:11:46 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:11:46 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:11:46 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:11:46 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:11:46 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:11:46 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:13:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:13:54 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:13:54 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:13:55 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:13:55 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:13:56 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:13:56 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:13:56 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 08:13:56 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1310
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1407
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1310
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1407
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1310
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1407
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2582
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2582
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2770
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2770
[22-Dec-2025 08:13:58 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2770
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2774
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2774
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2793
[22-Dec-2025 08:13:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2793
[22-Dec-2025 08:14:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:14:01 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:14:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:14:01 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:14:01 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:14:01 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:14:01 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:14:01 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:14:01 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:14:01 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:14:01 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:14:01 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:14:01 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:14:01 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:14:01 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:14:01 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:14:01 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:14:01 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:14:01 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:14:01 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:14:01 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:16:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:16:34 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:16:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:16:34 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:16:34 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:16:34 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:16:34 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:16:34 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47,47]
[22-Dec-2025 08:16:34 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1418
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1418
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1321
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1418
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2593
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2593
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:16:35 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2785
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2785
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2804
[22-Dec-2025 08:16:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2804
[22-Dec-2025 08:16:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:16:36 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:16:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:16:36 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:16:36 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:16:36 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:16:36 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:16:36 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:16:36 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:16:36 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:16:36 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:16:36 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:16:36 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:16:36 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:16:36 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:16:36 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:16:36 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:16:36 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:16:36 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:16:36 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:16:36 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:21:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:21:01 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:21:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:21:03 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:21:04 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:21:04 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:21:04 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:21:04 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 08:21:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1336
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1433
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1336
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1433
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Undefined index: duration in /home/twpurnyc/public_html/student/course-detail.php on line 1723
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2608
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2608
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2796
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2796
[22-Dec-2025 08:21:05 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2796
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2819
[22-Dec-2025 08:21:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2819
[22-Dec-2025 08:21:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:21:06 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:21:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:21:06 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:21:06 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:21:06 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:21:06 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:21:06 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:21:06 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:21:06 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:21:06 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:21:06 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:21:06 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:21:06 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:21:06 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:21:06 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:21:06 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:21:06 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:21:06 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:21:06 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:21:06 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:25:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:25:18 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:25:18 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:25:18 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:25:18 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:25:18 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:25:18 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:25:18 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 08:25:18 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Undefined index: duration in /home/twpurnyc/public_html/student/course-detail.php on line 1704
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:25:23 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:25:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:25:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:25:25 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:25:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:25:25 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:25:25 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:25:25 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:25:25 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:25:25 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:25:25 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:25:25 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:25:25 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:25:25 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:25:25 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:25:25 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:25:25 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:25:25 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:25:25 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:25:25 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:25:25 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:25:25 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:25:25 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:27:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:27:14 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:27:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:27:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:27:15 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:27:15 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:27:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:27:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 08:27:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:27:16 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:27:16 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:27:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:27:17 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:27:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:27:17 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:27:17 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:27:17 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:27:17 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:27:17 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:27:17 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:27:17 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:27:17 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:27:17 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:27:17 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:27:17 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:27:17 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:27:17 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:27:17 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:27:17 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:27:17 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:27:17 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:27:17 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:33:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:33:14 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:33:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:33:14 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:33:14 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:33:15 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:33:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:33:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 08:33:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:33:15 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:33:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:33:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:33:17 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:33:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 07:59:21
    [created_at] => 1766386767
    [last_regeneration] => 1766386767
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766386767
)

[22-Dec-2025 08:33:18 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:33:18 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:33:18 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:33:18 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:33:18 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:33:18 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:33:18 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:33:18 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:33:18 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:33:18 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:33:18 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:33:18 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:33:18 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:33:18 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:33:18 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:33:18 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:33:18 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:33:18 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:34:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:34:37 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 08:34:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:34:37
)

[22-Dec-2025 08:34:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:34:43 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:34:43 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:34:37
    [created_at] => 1766388883
    [last_regeneration] => 1766388883
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766388883
)

[22-Dec-2025 08:34:44 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:34:44 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:34:44 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:34:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:34:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 08:34:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:34:44 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:34:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:34:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:34:47 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:34:47 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:34:37
    [created_at] => 1766388883
    [last_regeneration] => 1766388883
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766388883
)

[22-Dec-2025 08:34:47 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:34:47 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:34:47 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:34:47 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:34:47 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:34:47 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:34:47 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:34:47 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:34:47 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:34:47 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:34:47 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:34:47 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:34:47 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:34:47 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:34:47 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:34:47 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:34:47 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:34:47 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:42:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:42:16 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:42:16 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:34:37
    [created_at] => 1766388883
    [last_regeneration] => 1766388883
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766388883
)

[22-Dec-2025 08:42:17 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:42:17 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:42:18 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:42:18 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:42:18 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 08:42:18 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:42:18 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:42:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:42:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:42:21 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:42:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:34:37
    [created_at] => 1766388883
    [last_regeneration] => 1766388883
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766388883
)

[22-Dec-2025 08:42:21 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:42:21 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:42:21 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:42:21 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:42:21 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:42:21 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:42:21 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:42:21 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:42:21 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:42:21 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:42:21 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:42:21 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:42:21 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:42:21 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:42:21 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:42:21 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:42:21 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:42:21 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:45:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:45:45 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:45:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:34:37
    [created_at] => 1766388883
    [last_regeneration] => 1766388883
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766388883
)

[22-Dec-2025 08:45:45 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:45:45 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:45:45 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:45:45 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:45:45 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:45:45 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:45:45 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:45:45 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:45:45 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:45:45 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:45:45 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:45:45 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:45:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:45:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:45:46 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:45:46 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:45:46 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:45:46 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:47:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:47:55 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:47:55 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:34:37
    [created_at] => 1766388883
    [last_regeneration] => 1766388883
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766388883
)

[22-Dec-2025 08:47:55 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:47:55 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:47:55 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:47:55 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:47:55 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:47:55 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:47:55 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:47:55 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:47:55 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:47:55 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:47:55 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:47:55 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:47:55 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:47:55 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:47:55 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:47:55 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:47:55 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:47:55 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:51:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:51:42 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:51:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:34:37
    [created_at] => 1766388883
    [last_regeneration] => 1766388883
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766388883
)

[22-Dec-2025 08:51:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:51:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:51:42 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:51:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:51:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 08:51:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:51:42 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:51:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:51:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:51:45 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:51:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:34:37
    [created_at] => 1766388883
    [last_regeneration] => 1766388883
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766388883
)

[22-Dec-2025 08:51:45 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:51:45 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:51:45 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:51:45 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:51:45 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:51:45 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:51:45 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:51:45 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:51:45 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:51:45 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:51:45 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:51:45 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:51:45 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:51:45 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:51:45 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:51:45 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:51:45 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:51:45 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 08:52:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:52:24 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 08:52:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:52:24
)

[22-Dec-2025 08:52:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:52:35 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:52:35 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:52:24
    [created_at] => 1766389955
    [last_regeneration] => 1766389955
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766389955
)

[22-Dec-2025 08:52:35 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:52:35 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:52:35 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:52:35 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:52:35 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 08:52:35 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:52:36 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:52:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:57:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:57:47 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:57:47 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:52:24
    [created_at] => 1766389955
    [last_regeneration] => 1766389955
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766389955
)

[22-Dec-2025 08:57:47 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:57:47 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:57:47 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:57:47 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:57:47 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 08:57:47 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:57:47 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:57:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:58:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:58:08 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 08:58:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
)

[22-Dec-2025 08:58:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:58:14 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:58:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
    [created_at] => 1766390293
    [last_regeneration] => 1766390293
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766390293
)

[22-Dec-2025 08:58:14 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 08:58:14 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 08:58:14 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 08:58:14 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 08:58:14 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 08:58:14 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:58:15 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:58:15 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 08:58:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 08:58:17 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 08:58:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
    [created_at] => 1766390293
    [last_regeneration] => 1766390293
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766390293
)

[22-Dec-2025 08:58:17 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:58:17 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 08:58:17 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 08:58:17 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 08:58:17 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 08:58:17 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 08:58:17 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 08:58:17 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 08:58:17 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 08:58:17 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 08:58:17 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 08:58:17 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 08:58:17 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:58:17 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 08:58:17 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 08:58:17 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:58:17 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 08:58:17 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:03:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:03:31 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:03:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
    [created_at] => 1766390293
    [last_regeneration] => 1766390293
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766390293
)

[22-Dec-2025 09:03:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:03:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:03:31 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 09:03:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 09:03:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:03:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:03:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:03:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:03:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:03:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:03:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:03:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:03:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:03:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:03:32 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:03:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:03:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:03:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:03:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:03:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:03:34 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:03:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
    [created_at] => 1766390293
    [last_regeneration] => 1766390293
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766390293
)

[22-Dec-2025 09:03:34 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:03:34 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:03:34 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:03:34 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:03:34 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:03:34 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:03:34 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:03:34 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:03:34 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:03:34 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:03:34 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:03:34 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:03:34 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:03:34 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:03:34 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:03:34 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:03:34 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:03:34 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:05:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:05:19 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:05:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
    [created_at] => 1766390293
    [last_regeneration] => 1766390293
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766390293
)

[22-Dec-2025 09:05:19 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:05:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:05:19 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 09:05:19 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 09:05:19 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:05:19 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:05:19 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:05:19 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:05:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:05:22 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:05:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
    [created_at] => 1766390293
    [last_regeneration] => 1766390293
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766390293
)

[22-Dec-2025 09:05:22 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:05:22 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:05:22 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:05:22 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:05:22 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:05:22 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:05:22 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:05:22 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:05:22 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:05:22 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:05:22 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:05:22 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:05:22 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:05:22 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:05:22 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:05:22 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:05:22 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:05:22 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:06:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:06:29 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:06:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
    [created_at] => 1766390293
    [last_regeneration] => 1766390293
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766390293
)

[22-Dec-2025 09:06:29 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:06:29 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:06:29 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:06:29 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:06:29 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:06:29 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:06:29 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:06:29 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:06:29 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:06:29 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:06:29 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:06:29 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:06:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:06:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:06:29 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:06:29 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:06:29 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:11:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:11:37 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:11:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
    [created_at] => 1766390293
    [last_regeneration] => 1766390293
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766390293
)

[22-Dec-2025 09:11:37 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:11:37 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:11:38 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[22-Dec-2025 09:11:38 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[22-Dec-2025 09:11:38 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:11:38 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:11:38 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:11:38 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:11:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:11:40 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:11:40 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
    [created_at] => 1766390293
    [last_regeneration] => 1766390293
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766390293
)

[22-Dec-2025 09:11:40 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:11:40 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:11:40 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:11:40 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:11:40 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:11:40 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:11:40 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:11:40 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:11:40 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:11:40 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:11:40 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:11:40 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:11:40 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:11:40 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:11:40 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:11:40 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:11:40 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:11:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:11:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:11:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 08:58:08
    [created_at] => 1766390293
    [last_regeneration] => 1766390293
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766390293
)

[22-Dec-2025 09:11:45 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:11:45 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:11:45 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:11:45 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:11:45 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:11:45 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:11:45 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:11:45 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:11:45 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:11:45 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:11:45 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:11:45 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:11:45 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:11:45 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:11:45 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:11:45 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:11:45 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:11:45 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:12:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:12:25 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 09:12:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
)

[22-Dec-2025 09:12:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:12:31 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:12:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:12:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:12:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:12:31 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 09:12:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 09:12:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:12:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:12:31 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:12:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:12:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:12:33 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:12:33 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:12:33 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:12:33 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:12:33 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:12:33 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:12:33 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:12:33 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:12:33 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:12:33 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:12:33 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:12:33 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:12:33 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:12:33 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:12:33 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:12:33 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:12:33 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:12:33 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:12:33 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:12:33 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:13:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:13:14 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:13:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:13:14 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:13:14 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:13:14 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:13:14 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:13:14 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:13:14 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:13:14 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:13:14 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:13:14 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:13:14 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:13:14 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:13:14 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:13:14 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:13:14 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:13:14 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:13:14 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:13:14 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:13:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:13:33 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:13:33 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:13:33 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:13:33 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:13:33 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:13:33 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:13:33 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:13:33 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:13:33 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:13:33 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:13:33 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:13:33 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:13:33 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:13:33 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:13:33 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:13:33 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:13:33 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:13:33 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:13:33 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:13:33 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:13:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:13:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:13:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:13:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:13:44 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:13:44 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:13:44 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:13:44 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:13:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:13:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:13:44 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:13:44 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:13:44 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:13:44 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:13:44 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:13:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:13:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:13:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:13:44 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:13:44 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:13:44 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:13:44 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:13:44 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:13:44 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:13:44 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:15:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:15:03 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:15:03 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:15:04 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:15:04 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:15:04 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:15:04 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:15:04 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:15:04 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:15:04 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:15:04 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:15:04 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:15:04 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:15:04 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:15:04 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:15:04 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:15:04 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:15:04 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:15:04 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:15:04 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:15:04 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:15:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:15:09 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:15:09 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:15:09 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:15:09 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:15:09 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:15:09 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:15:09 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:15:09 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:15:09 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:15:09 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:15:09 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:15:09 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:15:09 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:15:09 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:15:09 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:15:09 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:15:09 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:15:09 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:15:09 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:15:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:15:14 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:15:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:15:14 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:15:14 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:15:14 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:15:14 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:15:14 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:15:14 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:15:14 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:15:14 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:15:14 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:15:14 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:15:14 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:15:14 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:15:14 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:15:14 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:15:14 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:15:14 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:15:14 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:15:14 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:22:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:22:25 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:22:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:22:25 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:22:25 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:22:25 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 09:22:25 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 09:22:25 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:22:25 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:22:25 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:22:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:22:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:22:26 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:22:26 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:12:25
    [created_at] => 1766391150
    [last_regeneration] => 1766391150
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391150
)

[22-Dec-2025 09:22:26 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:22:26 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:22:26 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:22:26 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:22:26 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:22:26 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:22:26 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:22:26 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:22:26 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:22:26 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:22:26 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:22:26 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:22:26 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:22:26 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:22:26 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:22:26 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:22:26 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:22:26 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:23:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:23:14 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 09:23:14 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
)

[22-Dec-2025 09:23:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:23:21 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:23:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:23:21 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:23:21 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:23:21 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 09:23:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 09:23:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:23:21 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:23:21 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:23:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:23:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:23:23 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:23:23 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:23:23 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:23:23 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:23:23 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:23:23 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:23:23 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:23:23 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:23:23 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:23:23 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:23:23 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:23:23 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:23:23 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:23:23 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:23:23 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:23:23 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:23:23 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:23:23 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:23:23 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:23:23 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:23:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:23:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:23:26 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:23:26 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:23:26 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:23:26 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:23:26 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:23:26 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:23:26 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:23:26 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:23:26 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:23:26 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:23:26 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:23:26 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:23:26 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:23:26 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:23:26 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:23:26 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:23:26 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:23:26 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:23:26 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:23:26 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:23:26 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:23:26 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:23:26 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:23:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:23:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:23:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:23:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:23:30 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:23:30 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:23:30 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:23:30 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:23:30 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:23:30 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:23:30 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:23:30 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:23:30 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:23:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:23:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:23:30 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:23:30 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:23:30 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:23:30 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:23:30 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:23:30 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:23:30 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:23:30 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:23:30 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:23:30 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:24:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:24:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:24:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:24:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:24:46 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:24:46 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:24:46 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:24:46 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:24:46 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:24:46 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:24:46 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:24:46 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:24:46 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:24:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:24:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:24:46 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:24:46 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:24:46 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:24:46 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:24:46 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:24:46 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:24:46 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:24:46 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:24:46 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:24:47 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:24:47 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:24:47 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:24:47 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:24:47 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:24:47 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:35:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:35:17 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:35:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:35:19 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:35:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:35:21 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 09:35:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 09:35:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:35:21 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:35:23 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:35:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:35:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:35:25 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:35:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:35:25 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:35:25 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:35:25 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:35:25 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:35:25 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:35:25 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:35:25 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:35:25 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:35:25 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:35:25 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:35:25 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:35:25 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:35:25 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:35:25 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:35:25 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:35:25 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:35:25 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:35:25 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:35:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:35:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:35:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:35:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:35:30 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:35:30 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:35:30 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:35:30 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:35:30 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:35:30 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:35:30 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:35:30 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:35:30 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:35:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:35:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:23:14
    [created_at] => 1766391800
    [last_regeneration] => 1766391800
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766391800
)

[22-Dec-2025 09:35:30 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:35:30 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:35:30 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:35:30 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:35:30 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:35:30 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:35:30 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:35:30 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:35:31 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:35:31 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:35:31 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:35:31 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:35:31 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:35:31 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:35:31 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:35:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:35:57 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 09:35:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:35:57
)

[22-Dec-2025 09:36:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:36:01 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:36:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:35:57
    [created_at] => 1766392561
    [last_regeneration] => 1766392561
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766392561
)

[22-Dec-2025 09:36:02 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:36:02 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:36:03 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 09:36:03 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 09:36:03 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:36:03 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:36:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:36:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:36:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:36:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:36:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:36:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:36:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:36:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:36:05 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:36:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:36:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:36:05 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:36:05 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:36:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:36:06 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:36:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:35:57
    [created_at] => 1766392561
    [last_regeneration] => 1766392561
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766392561
)

[22-Dec-2025 09:36:06 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:36:06 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:36:06 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:36:06 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:36:06 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:36:06 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:36:06 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:36:06 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:36:06 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:36:06 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:36:06 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:36:07 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:36:07 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:36:07 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:36:07 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:36:07 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:36:07 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:36:07 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:36:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:36:20 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:36:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:35:57
    [created_at] => 1766392561
    [last_regeneration] => 1766392561
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766392561
)

[22-Dec-2025 09:36:21 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:36:21 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:36:21 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:36:21 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:36:21 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:36:21 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:36:21 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:36:21 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:36:21 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:36:21 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:36:21 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:36:21 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:36:21 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:36:21 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:36:21 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:36:21 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:36:21 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:36:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:36:28 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:36:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:35:57
    [created_at] => 1766392561
    [last_regeneration] => 1766392561
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766392561
)

[22-Dec-2025 09:36:29 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:36:29 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:36:29 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:36:29 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:36:29 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:36:29 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:36:29 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:36:29 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:36:29 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:36:29 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:36:29 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:36:29 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:36:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:36:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:36:29 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:36:29 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:36:29 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:36:29 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:43:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:43:15 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:43:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:35:57
    [created_at] => 1766392561
    [last_regeneration] => 1766392561
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766392561
)

[22-Dec-2025 09:43:16 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:43:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:43:16 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 09:43:16 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 09:43:16 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:43:16 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:43:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:43:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:43:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:43:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:43:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:43:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:43:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:43:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:43:18 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:43:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:43:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:43:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:43:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:43:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:43:20 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:43:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:35:57
    [created_at] => 1766392561
    [last_regeneration] => 1766392561
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766392561
)

[22-Dec-2025 09:43:20 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:43:20 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:43:20 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:43:20 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:43:20 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:43:20 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:43:20 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:43:20 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:43:20 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:43:20 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:43:20 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:43:20 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:43:20 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:43:20 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:43:20 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:43:20 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:43:20 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:43:20 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:47:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:47:27 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:47:27 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:35:57
    [created_at] => 1766392561
    [last_regeneration] => 1766392561
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766392561
)

[22-Dec-2025 09:47:27 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:47:27 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:47:27 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 09:47:27 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 09:47:27 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:47:27 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:47:27 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:47:27 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:47:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:47:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:47:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:35:57
    [created_at] => 1766392561
    [last_regeneration] => 1766392561
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766392561
)

[22-Dec-2025 09:47:30 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:47:30 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:47:30 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:47:30 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:47:30 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:47:30 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:47:30 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:47:30 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:47:30 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:47:30 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:47:30 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:47:30 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:47:30 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:47:30 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:47:30 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:47:30 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:47:30 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:47:30 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:47:30 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:47:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:47:57 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 09:47:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
)

[22-Dec-2025 09:48:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:48:04 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:48:04 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
    [created_at] => 1766393282
    [last_regeneration] => 1766393282
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766393282
)

[22-Dec-2025 09:48:04 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:48:04 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:48:04 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 09:48:04 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 09:48:04 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:48:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:48:04 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2777
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2781
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:48:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2800
[22-Dec-2025 09:48:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:48:07 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:48:07 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
    [created_at] => 1766393282
    [last_regeneration] => 1766393282
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766393282
)

[22-Dec-2025 09:48:07 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:48:07 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:48:07 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:48:07 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:48:07 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:48:07 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:48:07 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:48:07 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:48:07 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:48:07 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:48:07 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:48:07 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:48:07 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:48:07 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:48:07 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:48:07 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:48:07 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:48:07 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:48:07 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:49:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:49:26 Europe/Berlin] DEBUG - Session data: {"session_started_at":"2025-12-22 09:47:57","created_at":1766393282,"last_regeneration":1766393282,"stored_redirect":"\/student\/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46","redirect_to_cart":false,"user_id":45,"username":"kanicl","email":"swususan0@gmail.com","first_name":"Brian","last_name":"Kan","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1766393282}
[22-Dec-2025 09:49:26 Europe/Berlin] DEBUG - POST data: {"video_id":"46","user_id":"45","completion_percentage":"100.00","completed_at":"2025-12-22 08:49:31"}
[22-Dec-2025 09:49:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:49:28 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:49:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
    [created_at] => 1766393282
    [last_regeneration] => 1766393282
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766393282
)

[22-Dec-2025 09:49:29 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:49:29 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:49:29 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:49:29 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:49:29 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:49:29 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:49:29 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:49:29 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:49:29 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:49:29 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:49:29 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:49:29 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:49:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:49:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:49:29 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:49:29 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:49:29 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:49:29 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 09:49:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:49:52 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:49:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
    [created_at] => 1766393282
    [last_regeneration] => 1766393282
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766393282
)

[22-Dec-2025 09:49:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 09:49:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 09:49:52 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 47
[22-Dec-2025 09:49:52 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 47
[22-Dec-2025 09:49:52 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 09:49:52 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 09:49:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:49:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:49:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 09:49:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 09:49:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:49:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 09:49:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:49:54 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:49:54 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
    [created_at] => 1766393282
    [last_regeneration] => 1766393282
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766393282
)

[22-Dec-2025 09:49:54 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:49:54 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:49:54 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:49:54 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:49:54 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 09:49:54 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 09:49:54 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 09:49:54 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:49:54 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:49:54 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:49:54 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 09:49:54 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:49:54 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 09:49:54 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:49:54 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 09:49:54 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 09:49:54 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 09:49:54 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 09:50:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 09:50:08 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 09:50:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
    [created_at] => 1766393282
    [last_regeneration] => 1766393282
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766393282
)

[22-Dec-2025 09:50:08 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:50:08 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 09:50:08 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 09:50:08 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 09:50:08 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 09:50:08 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 09:50:08 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 09:50:08 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 09:50:08 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 09:50:08 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 09:50:08 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 09:50:08 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 09:50:08 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:50:08 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 09:50:08 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 09:50:08 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:50:08 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 09:50:08 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 09:50:08 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:03:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:03:01 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:03:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
    [created_at] => 1766393282
    [last_regeneration] => 1766393282
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766393282
)

[22-Dec-2025 10:03:01 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 10:03:01 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 10:03:01 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 10:03:01 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 10:03:01 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 10:03:01 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 10:03:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:03:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:03:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:03:01 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:03:01 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:03:01 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:03:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:03:04 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:03:04 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
    [created_at] => 1766393282
    [last_regeneration] => 1766393282
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766393282
)

[22-Dec-2025 10:03:04 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 10:03:04 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 10:03:04 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 10:03:04 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 10:03:04 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 10:03:04 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 10:03:04 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 10:03:04 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 10:03:04 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 10:03:04 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 10:03:04 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 10:03:04 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 10:03:04 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:03:04 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 10:03:04 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 10:03:04 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:03:04 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:03:04 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 10:03:04 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:06:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:06:49 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:06:49 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
    [created_at] => 1766393282
    [last_regeneration] => 1766393282
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766393282
)

[22-Dec-2025 10:06:50 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 10:06:50 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 10:06:50 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 10:06:50 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 10:06:50 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 10:06:50 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 10:06:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:06:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:06:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:06:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:06:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:06:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:06:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:06:51 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:06:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 09:47:57
    [created_at] => 1766393282
    [last_regeneration] => 1766393282
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766393282
)

[22-Dec-2025 10:06:51 Europe/Berlin] ✅ COURSE ID: Received course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 10:06:51 Europe/Berlin] 🔐 DECRYPT: Attempting to decrypt course_id: Yit3alk4aXBvYy9RcHNHaHIrWGJJZz...
[22-Dec-2025 10:06:51 Europe/Berlin] 🔓 DECRYPT: Raw result: 20
[22-Dec-2025 10:06:51 Europe/Berlin] ✅ DECRYPT: Successfully decrypted to: 20
[22-Dec-2025 10:06:51 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 10:06:51 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 10:06:51 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 10:06:51 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 10:06:51 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 10:06:51 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 10:06:51 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 10:06:51 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 10:06:51 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:06:51 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 10:06:51 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 10:06:51 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:06:51 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:06:51 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 10:06:51 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:07:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:07:24 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 10:07:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:07:24
)

[22-Dec-2025 10:07:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:07:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:07:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:07:24
    [created_at] => 1766394449
    [last_regeneration] => 1766394449
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766394449
)

[22-Dec-2025 10:07:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 10:07:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 10:07:30 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 10:07:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 10:07:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 10:07:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 10:07:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:07:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:07:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:07:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:07:31 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:07:31 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:08:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:08:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:09:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:09:48 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:09:48 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:07:24
    [created_at] => 1766394449
    [last_regeneration] => 1766394449
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766394449
)

[22-Dec-2025 10:09:48 Europe/Berlin] ✅ COURSE ID: Received course_id: 20...
[22-Dec-2025 10:09:48 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 20
[22-Dec-2025 10:09:48 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 10:09:48 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 10:09:48 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 10:09:48 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 10:09:48 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 10:09:48 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 10:09:48 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 10:09:49 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 10:09:49 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 10:09:49 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 10:09:49 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 10:09:49 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 10:09:49 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 10:09:49 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 10:10:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:10:13 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:10:13 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:07:24
    [created_at] => 1766394449
    [last_regeneration] => 1766394449
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766394449
)

[22-Dec-2025 10:10:13 Europe/Berlin] ✅ COURSE ID: Received course_id: 20...
[22-Dec-2025 10:10:13 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 20
[22-Dec-2025 10:10:13 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 10:10:13 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 10:10:13 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 10:10:13 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 10:10:13 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 10:10:13 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 10:10:13 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 10:10:13 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 10:10:13 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:10:13 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 10:10:13 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 10:10:13 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:10:13 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:10:13 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 10:10:13 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:12:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:12:33 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 10:12:33 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:12:33
)

[22-Dec-2025 10:12:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:12:41 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:12:41 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:12:33
    [created_at] => 1766394759
    [last_regeneration] => 1766394759
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766394759
)

[22-Dec-2025 10:12:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 10:12:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 10:12:43 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 10:12:43 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 10:12:43 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 10:12:43 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 10:12:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:12:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:12:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:12:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:12:44 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:12:44 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:12:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:12:51 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:12:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:12:33
    [created_at] => 1766394759
    [last_regeneration] => 1766394759
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766394759
)

[22-Dec-2025 10:12:51 Europe/Berlin] ✅ COURSE ID: Received course_id: 20...
[22-Dec-2025 10:12:51 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 20
[22-Dec-2025 10:12:51 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 10:12:51 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 10:12:51 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 10:12:51 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 10:12:51 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 10:12:51 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 10:12:51 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 10:12:51 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 10:12:51 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:12:51 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 10:12:51 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 10:12:51 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:12:51 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:12:51 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 10:12:51 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:21:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:21:37 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:21:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:12:33
    [created_at] => 1766394759
    [last_regeneration] => 1766394759
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766394759
)

[22-Dec-2025 10:21:39 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 10:21:39 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 10:21:40 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 10:21:40 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 10:21:40 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 10:21:40 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 10:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:21:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:21:40 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:21:40 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:22:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:22:15 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 10:22:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:22:15
)

[22-Dec-2025 10:22:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:22:22 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:22:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:22:15
    [created_at] => 1766395341
    [last_regeneration] => 1766395341
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766395341
)

[22-Dec-2025 10:22:22 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 10:22:22 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 10:22:22 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 10:22:22 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 10:22:22 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 10:22:22 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 10:22:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:22:22 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:22:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 10:22:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 10:22:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:22:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 10:22:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 10:22:34 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 10:22:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:22:15
    [created_at] => 1766395341
    [last_regeneration] => 1766395341
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766395341
)

[22-Dec-2025 10:22:34 Europe/Berlin] ✅ COURSE ID: Received course_id: 20...
[22-Dec-2025 10:22:34 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 20
[22-Dec-2025 10:22:34 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 10:22:34 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 10:22:34 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 10:22:34 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 10:22:34 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 10:22:34 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 10:22:34 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 10:22:34 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 10:22:34 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:22:34 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 10:22:34 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 10:22:34 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:22:34 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 10:22:34 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 10:22:34 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:06:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:06:51 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:06:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:22:15
    [created_at] => 1766395341
    [last_regeneration] => 1766395341
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766395341
)

[22-Dec-2025 11:06:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 11:06:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 11:06:51 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 11:06:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 11:06:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 11:06:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 11:06:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 11:06:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 11:06:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 11:06:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 11:06:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 11:06:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 11:08:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:08:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:10:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:10:06 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:10:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:22:15
    [created_at] => 1766395341
    [last_regeneration] => 1766395341
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766395341
)

[22-Dec-2025 11:10:06 Europe/Berlin] ✅ COURSE ID: Received course_id: 20...
[22-Dec-2025 11:10:06 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 20
[22-Dec-2025 11:10:06 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 11:10:06 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 11:10:06 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 11:10:06 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 11:10:06 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 11:10:06 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 11:10:06 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 11:10:06 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 11:10:06 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 11:10:06 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 11:10:06 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 11:10:06 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 11:10:06 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 11:10:06 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 11:10:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:10:19 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:10:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:22:15
    [created_at] => 1766395341
    [last_regeneration] => 1766395341
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766395341
)

[22-Dec-2025 11:10:19 Europe/Berlin] ✅ COURSE ID: Received course_id: 20...
[22-Dec-2025 11:10:19 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 20
[22-Dec-2025 11:10:19 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 11:10:19 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 11:10:19 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 11:10:19 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 11:10:19 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 11:10:19 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 11:10:19 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 11:10:19 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 11:10:19 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:10:19 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 11:10:19 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 11:10:19 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:10:19 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:10:19 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 11:10:19 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:17:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:17:52 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:17:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 10:22:15
    [created_at] => 1766395341
    [last_regeneration] => 1766395341
    [stored_redirect] => /student/course-detail.php?id=Yit3alk4aXBvYy9RcHNHaHIrWGJJZz09&lesson=46
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766395341
)

[22-Dec-2025 11:17:52 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 11:17:52 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 11:17:52 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 11:17:52 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 11:17:52 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 11:17:52 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 11:17:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 11:17:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 11:17:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 11:17:52 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 11:17:52 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 11:17:52 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 11:19:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:19:35 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:19:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
)

[22-Dec-2025 11:19:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:19:35 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:19:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:19:35 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 120
[22-Dec-2025 11:19:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:19:39 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:19:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:19:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:19:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:19:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:19:46 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 11:19:46 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 11:19:46 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 11:19:46 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 11:19:46 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 11:19:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 11:19:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 11:19:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1317
[22-Dec-2025 11:19:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1414
[22-Dec-2025 11:19:46 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 11:19:46 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2589
[22-Dec-2025 11:20:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:20:45 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:20:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:20:45 Europe/Berlin] ✅ COURSE ID: Received course_id: 20...
[22-Dec-2025 11:20:45 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 20
[22-Dec-2025 11:20:45 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 11:20:45 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 11:20:45 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 11:20:45 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 11:20:45 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 11:20:45 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 11:20:45 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 11:20:45 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 11:20:45 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:20:45 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 11:20:45 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 11:20:45 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:20:45 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:20:45 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 11:20:45 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:21:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:21:01 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:21:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:21:01 Europe/Berlin] ✅ COURSE ID: Received course_id: 20...
[22-Dec-2025 11:21:01 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 20
[22-Dec-2025 11:21:01 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 47
[22-Dec-2025 11:21:01 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 47
[22-Dec-2025 11:21:01 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=47
[22-Dec-2025 11:21:01 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 11:21:01 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 11:21:01 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 11:21:01 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 47
[22-Dec-2025 11:21:01 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 11:21:01 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 11:21:01 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 11:21:01 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 11:21:01 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 11:21:01 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 11:21:01 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 11:21:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:21:07 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:21:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:21:07 Europe/Berlin] ✅ COURSE ID: Received course_id: 20...
[22-Dec-2025 11:21:07 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 20
[22-Dec-2025 11:21:07 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 46
[22-Dec-2025 11:21:07 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 46
[22-Dec-2025 11:21:07 Europe/Berlin] 🎯 FINAL IDs: course_id=20, lesson_id=46
[22-Dec-2025 11:21:07 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 11:21:07 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 11:21:07 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 11:21:07 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 20, lesson_id: 46
[22-Dec-2025 11:21:07 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 11:21:07 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:21:07 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 11:21:07 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 11:21:07 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:21:07 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:21:07 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 11:21:07 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_6947c4aa893fb_1766311082.mp4
[22-Dec-2025 11:35:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:35:54 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:35:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:35:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 11:35:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 11:35:54 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 11:35:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 11:35:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 11:35:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 11:35:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 11:35:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 11:35:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 11:35:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 11:35:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 11:35:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 11:38:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:38:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:38:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:38:44 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 11:38:44 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 11:38:44 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 11:38:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 11:38:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 11:38:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 11:38:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 11:38:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 11:38:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 11:38:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 11:38:45 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 11:38:45 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 11:43:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:43:29 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:43:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:43:29 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 11:43:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 11:43:29 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 11:43:29 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 11:43:29 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 11:43:29 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 11:43:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 11:43:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 11:43:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 11:43:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 11:43:29 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 11:43:29 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 11:48:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:48:32 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:48:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:48:32 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 11:48:32 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 11:48:32 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 11:48:32 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 11:48:32 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 11:48:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 11:48:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 11:48:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 11:48:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 11:48:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 11:48:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 11:48:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 11:57:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 11:57:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 11:57:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 11:57:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 11:57:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 11:57:30 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 11:57:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 11:57:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 11:57:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 11:57:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 11:57:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 11:57:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 11:57:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 11:57:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 11:57:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 12:00:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:00:48 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:00:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:00:48 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 12:00:48 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:00:49 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 12:00:49 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 12:00:49 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 12:00:49 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:00:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:00:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 12:00:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:00:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 12:00:49 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 12:00:49 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 12:01:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:01:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:01:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:01:46 Europe/Berlin] REMINDER EMAIL DEBUG: Calling sendEmailNow for swususan0@gmail.com
[22-Dec-2025 12:01:46 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 📅 Study Reminder: Quiz Prep - data analytics - failed
[22-Dec-2025 12:01:46 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 📅 Study Reminder: Quiz Prep - data analytics - sent
[22-Dec-2025 12:01:46 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 📅 Study Reminder: Quiz Prep - data analytics - sent
[22-Dec-2025 12:01:46 Europe/Berlin] REMINDER EMAIL DEBUG: sendEmailNow returned: TRUE
[22-Dec-2025 12:01:46 Europe/Berlin] Study reminder email sent successfully AND stored for automatic sending to user 45
[22-Dec-2025 12:04:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:04:50 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:04:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:04:50 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 12:04:50 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:04:50 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 12:04:50 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 12:04:50 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 12:04:50 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:04:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:04:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 12:04:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:04:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 12:04:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 12:04:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 12:07:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:07:49 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:07:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:07:49 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 12:07:50 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:07:50 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 12:07:50 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 12:07:50 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 12:07:50 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:07:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:07:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 12:07:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:07:50 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 12:07:50 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 12:07:50 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 12:12:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:12:42 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:12:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:12:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 20, is_enrolled: YES
[22-Dec-2025 12:12:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:12:42 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 46
[22-Dec-2025 12:12:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 46
[22-Dec-2025 12:12:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [46,47]
[22-Dec-2025 12:12:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:12:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:12:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 12:12:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:12:42 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 12:12:42 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 12:12:42 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2610
[22-Dec-2025 12:16:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:16:06 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:16:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:16:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:16:11 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:16:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:16:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:16:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:16:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:16:46 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 12:16:46 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:16:47 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 12:16:47 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 12:16:47 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:16:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:16:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:16:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:16:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:33:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:33:28 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:33:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:33:28 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 12:33:28 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:33:28 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 12:33:28 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 12:33:28 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:33:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:33:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:33:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:33:29 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:34:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:34:22 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:34:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:34:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:34:27 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:34:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:34:27 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 12:34:27 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:34:28 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 12:34:28 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 12:34:28 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:34:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:34:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:34:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:34:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:34:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:34:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:34:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:34:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:34:33 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:34:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:38:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:38:56 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:38:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:40:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:40:00 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:40:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:40:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:40:05 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:40:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:40:05 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 12:40:05 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:40:05 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 12:40:05 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 12:40:05 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:40:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:40:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:40:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:40:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:52:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:52:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:52:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:52:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 12:52:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:52:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 12:52:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 12:52:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:52:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:52:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:52:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:52:31 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:53:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:53:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:53:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:53:44 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 12:53:44 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 12:53:44 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 31
[22-Dec-2025 12:53:44 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 31
[22-Dec-2025 12:53:44 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=31
[22-Dec-2025 12:53:44 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 12:53:44 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 12:53:44 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 12:53:44 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 31
[22-Dec-2025 12:53:44 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 12:53:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 12:53:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 12:53:44 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 12:53:44 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 12:53:44 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 12:53:44 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 12:54:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:54:54 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:54:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:54:54 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 12:54:54 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 12:54:54 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 30
[22-Dec-2025 12:54:54 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 30
[22-Dec-2025 12:54:54 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=30
[22-Dec-2025 12:54:54 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 12:54:54 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 12:54:54 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 12:54:54 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 30
[22-Dec-2025 12:54:54 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 12:54:54 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 12:54:54 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 12:54:54 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 12:54:54 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 12:54:54 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 12:54:54 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 12:54:54 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 12:56:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:56:15 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:56:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:56:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 12:56:15 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:56:15 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 12:56:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 12:56:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 12:56:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:56:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:56:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:56:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:56:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:57:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 12:57:23 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 12:57:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 12:57:24 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 12:57:24 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 12:57:25 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 12:57:25 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 12:57:25 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 12:57:25 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 12:57:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:57:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:57:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 12:57:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 12:57:26 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:00:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:00:50 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:00:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:00:53 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:00:53 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:00:56 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 13:00:56 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 13:00:56 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:00:56 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:00:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:00:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:00:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:00:59 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:00:59 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:03:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:03:40 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:03:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:03:41 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:03:41 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:03:41 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 30
[22-Dec-2025 13:03:41 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 30
[22-Dec-2025 13:03:41 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=30
[22-Dec-2025 13:03:41 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:03:41 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:03:41 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:03:41 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 30
[22-Dec-2025 13:03:42 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:03:42 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:03:42 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:03:42 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 13:03:42 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:03:42 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:03:42 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 13:03:42 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:03:44 Europe/Berlin] Database connection failed: Too many connections
[22-Dec-2025 13:03:57 Europe/Berlin] Database connection failed: Too many connections
[22-Dec-2025 13:09:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:09:29 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:09:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:09:29 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:09:29 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:09:30 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 13:09:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 13:09:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:09:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:09:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:09:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:09:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:09:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:09:30 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:10:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:10:16 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:10:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:10:16 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:10:16 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:10:16 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 30
[22-Dec-2025 13:10:16 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 30
[22-Dec-2025 13:10:16 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=30
[22-Dec-2025 13:10:16 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:10:16 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:10:16 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:10:16 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 30
[22-Dec-2025 13:10:16 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:10:16 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:10:16 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:10:16 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 13:10:16 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:10:16 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:10:16 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 13:10:16 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:10:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:10:25 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:10:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:10:25 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:10:25 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:10:26 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 13:10:26 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 13:10:26 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:10:26 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:10:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:10:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:10:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:10:26 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:10:26 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:11:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:11:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:11:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:11:44 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:11:44 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:11:44 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 30
[22-Dec-2025 13:11:44 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 30
[22-Dec-2025 13:11:44 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=30
[22-Dec-2025 13:11:44 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:11:44 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:11:44 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:11:44 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 30
[22-Dec-2025 13:11:44 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:11:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:44 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:11:44 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 13:11:44 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:44 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:44 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 13:11:44 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:11:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:11:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:11:46 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:11:46 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:11:46 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 30
[22-Dec-2025 13:11:46 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 30
[22-Dec-2025 13:11:46 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=30
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 30
[22-Dec-2025 13:11:46 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:46 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 13:11:46 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:11:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:11:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:11:46 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:11:46 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:11:46 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 30
[22-Dec-2025 13:11:46 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 30
[22-Dec-2025 13:11:46 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=30
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 30
[22-Dec-2025 13:11:46 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:46 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:11:46 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 13:11:46 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:19:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:19:17 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:19:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:19:19 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:19:19 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:19:19 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 13:19:19 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 13:19:19 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:19:19 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:19:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:19:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:19:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:19:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:19:20 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:24:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:24:33 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:24:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:24:33 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:24:33 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:24:33 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 30
[22-Dec-2025 13:24:33 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 30
[22-Dec-2025 13:24:33 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=30
[22-Dec-2025 13:24:33 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:24:33 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:24:33 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:24:33 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 30
[22-Dec-2025 13:24:33 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:24:33 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:24:33 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:24:33 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 13:24:33 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:24:33 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:24:33 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 13:24:33 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:26:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:26:55 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:26:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:26:55 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:26:55 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:26:55 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 31
[22-Dec-2025 13:26:55 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 31
[22-Dec-2025 13:26:55 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=31
[22-Dec-2025 13:26:55 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:26:55 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:26:55 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:26:55 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 31
[22-Dec-2025 13:26:56 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:26:56 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 13:26:56 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:26:56 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 13:26:56 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 13:26:56 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 13:26:56 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 13:33:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:33:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:33:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:33:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:33:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:33:30 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[22-Dec-2025 13:33:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[22-Dec-2025 13:33:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:33:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:33:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:33:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:33:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:33:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:33:30 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:33:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:33:56 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:33:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:33:56 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:33:56 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:33:56 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 30
[22-Dec-2025 13:33:56 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 30
[22-Dec-2025 13:33:56 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=30
[22-Dec-2025 13:33:56 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:33:56 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:33:56 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:33:56 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 30
[22-Dec-2025 13:33:56 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:33:56 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:33:56 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:33:56 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 13:33:56 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:33:56 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:33:56 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 13:33:56 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:34:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:34:00 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:34:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:34:00 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:34:00 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:34:00 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 13:34:00 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 13:34:00 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:34:00 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:34:00 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:34:00 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:34:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:34:25 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:34:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:34:25 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:34:25 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:34:25 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 31
[22-Dec-2025 13:34:25 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 31
[22-Dec-2025 13:34:25 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=31
[22-Dec-2025 13:34:25 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:34:25 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:34:25 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:34:25 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 31
[22-Dec-2025 13:34:25 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:34:25 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 13:34:25 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:34:25 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 13:34:25 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 13:34:25 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 13:34:25 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 13:34:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:34:37 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:34:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:34:37 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:34:37 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:34:37 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 30
[22-Dec-2025 13:34:37 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 30
[22-Dec-2025 13:34:37 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=30
[22-Dec-2025 13:34:37 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:34:37 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:34:37 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:34:37 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 30
[22-Dec-2025 13:34:37 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:34:37 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:34:37 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:34:37 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 13:34:37 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:34:37 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:34:37 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 13:34:37 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:34:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:34:40 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:34:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:34:41 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:34:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:34:43 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 13:34:43 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 13:34:43 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:34:43 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:34:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:34:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:34:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:34:46 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:34:46 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:42:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:42:50 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:42:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:42:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:42:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:42:52 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 13:42:52 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 13:42:52 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:42:52 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:42:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:42:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:42:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:42:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:42:55 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:43:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:43:04 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:43:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:43:04 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:43:04 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:43:04 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 30
[22-Dec-2025 13:43:04 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 30
[22-Dec-2025 13:43:04 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=30
[22-Dec-2025 13:43:04 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:43:04 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:43:04 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:43:04 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 30
[22-Dec-2025 13:43:04 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:43:04 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:43:04 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:43:04 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 13:43:04 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:43:04 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:43:04 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 13:43:04 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_693d190b92e66.mp4
[22-Dec-2025 13:43:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:43:25 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:43:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:43:26 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:43:26 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:43:26 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 13:43:26 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 13:43:26 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:43:26 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:43:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:43:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:43:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:43:27 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:43:27 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:49:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:49:06 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:49:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:49:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:49:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:49:06 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 30
[22-Dec-2025 13:49:06 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 30
[22-Dec-2025 13:49:06 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:49:06 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:49:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:49:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:49:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:49:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:49:06 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:49:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:49:25 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:49:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:49:25 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:49:25 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:49:25 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 31
[22-Dec-2025 13:49:25 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 31
[22-Dec-2025 13:49:25 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=31
[22-Dec-2025 13:49:25 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:49:25 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:49:25 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:49:25 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 31
[22-Dec-2025 13:49:25 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:49:25 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 13:49:25 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:49:25 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 13:49:25 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 13:49:25 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 13:49:25 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 13:49:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:49:41 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:49:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:49:41 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:49:41 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:49:41 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[22-Dec-2025 13:49:41 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[22-Dec-2025 13:49:41 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:49:41 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:49:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:49:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:49:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:49:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:49:41 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:49:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:49:49 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:49:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:49:49 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:49:49 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:49:49 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 31
[22-Dec-2025 13:49:49 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 31
[22-Dec-2025 13:49:49 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=31
[22-Dec-2025 13:49:49 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:49:49 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:49:49 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:49:49 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 31
[22-Dec-2025 13:49:49 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:49:49 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 13:49:49 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:49:49 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 13:49:49 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 13:49:49 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 13:49:49 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 13:51:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:51:29 Europe/Berlin] [2025-12-22 13:51:29] UPDATE REVIEW: Update review script started
[22-Dec-2025 13:51:29 Europe/Berlin] [2025-12-22 13:51:29] UPDATE REVIEW: Received data - Data: {"review_id":9,"rating":"3","title":"thanks","text":"hsdjh sdf fds  dfs dfs  f ds ds dfs dfsd sfdf  dfd ssd dfd fs"}
[22-Dec-2025 13:51:29 Europe/Berlin] [2025-12-22 13:51:29] UPDATE REVIEW: Parsed input - Data: {"review_id":9,"rating":3,"title_length":6,"text_length":61}
[22-Dec-2025 13:51:29 Europe/Berlin] [2025-12-22 13:51:29] UPDATE REVIEW: User ID: 45
[22-Dec-2025 12:51:29 UTC] [2025-12-22 12:51:29] UPDATE REVIEW: Database connected via db_connect.php (converted from mysqli)
[22-Dec-2025 12:51:29 UTC] [2025-12-22 12:51:29] UPDATE REVIEW: Found existing review with query: SELECT review_id, student_id, course_id FROM course_reviews WHERE review_id = ? AND student_id = ? - Data: {"review_id":"9","student_id":"45","course_id":"14"}
[22-Dec-2025 12:51:29 UTC] [2025-12-22 12:51:29] UPDATE REVIEW: Review updated successfully with query: UPDATE course_reviews SET rating = ?, review_title = ?, review_text = ?, updated_at = NOW() WHERE review_id = ? AND student_id = ?
[22-Dec-2025 12:51:29 UTC] [2025-12-22 12:51:29] UPDATE REVIEW: Course rating update failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'
[22-Dec-2025 12:51:29 UTC] [2025-12-22 12:51:29] UPDATE REVIEW: Review update completed successfully
[22-Dec-2025 13:51:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:51:32 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:51:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:51:32 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 13:51:32 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 13:51:32 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[22-Dec-2025 13:51:32 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[22-Dec-2025 13:51:32 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 13:51:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 13:51:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:51:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:51:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 13:51:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 13:51:32 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 13:56:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 13:56:49 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 13:56:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 13:56:49 Europe/Berlin] ✅ COURSE ID: Received course_id: 14...
[22-Dec-2025 13:56:49 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 14
[22-Dec-2025 13:56:49 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 31
[22-Dec-2025 13:56:49 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 31
[22-Dec-2025 13:56:49 Europe/Berlin] 🎯 FINAL IDs: course_id=14, lesson_id=31
[22-Dec-2025 13:56:49 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 13:56:49 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 13:56:49 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 13:56:49 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 14, lesson_id: 31
[22-Dec-2025 13:56:49 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 13:56:49 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 13:56:49 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 13:56:49 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 13:56:49 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 13:56:49 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 13:56:49 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 14:01:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:01:16 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:01:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:01:16 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 14:01:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 14:01:16 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[22-Dec-2025 14:01:16 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[22-Dec-2025 14:01:16 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 14:01:16 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 14:01:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:01:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:01:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:01:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:01:16 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 14:01:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:01:43 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:01:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:01:43 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 14:01:43 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 14:01:43 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[22-Dec-2025 14:01:43 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[22-Dec-2025 14:01:43 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 14:01:43 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 14:01:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:01:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:01:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:01:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:01:43 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 14:04:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:04:23 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:04:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:04:23 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 14, is_enrolled: YES
[22-Dec-2025 14:04:23 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 14:04:24 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 31
[22-Dec-2025 14:04:24 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 31
[22-Dec-2025 14:04:24 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [30,31]
[22-Dec-2025 14:04:24 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 14:04:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:04:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:04:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:04:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:04:24 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = uploads/profile_pictures/28_1765176788_Webectak (1).png
[22-Dec-2025 14:05:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:05:13 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:05:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766398773
    [last_regeneration] => 1766398773
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766398773
    [session_started_at] => 2025-12-22 11:19:35
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:10:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:10:46 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:10:46 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409030
    [created_at] => 1766409030
    [last_regeneration] => 1766409030
    [session_started_at] => 2025-12-22 14:10:30
)

[22-Dec-2025 14:11:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:11:03 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:11:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409063
    [last_regeneration] => 1766409063
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409063
    [session_started_at] => 2025-12-22 14:11:03
)

[22-Dec-2025 14:11:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:11:04 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:11:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409063
    [last_regeneration] => 1766409063
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409063
    [session_started_at] => 2025-12-22 14:11:03
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:11:04 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 70
[22-Dec-2025 14:11:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:11:08 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:11:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409063
    [last_regeneration] => 1766409063
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409063
    [session_started_at] => 2025-12-22 14:11:03
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:11:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:11:16 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:11:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409063
    [last_regeneration] => 1766409063
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409063
    [session_started_at] => 2025-12-22 14:11:03
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:11:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:11:19 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:11:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409063
    [last_regeneration] => 1766409063
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409063
    [session_started_at] => 2025-12-22 14:11:03
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:11:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:11:21 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:11:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409063
    [last_regeneration] => 1766409063
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409063
    [session_started_at] => 2025-12-22 14:11:03
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:11:22 Europe/Berlin] CART CLEARING: Cleared session cart during checkout process for user 45
[22-Dec-2025 14:11:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:11:54 Europe/Berlin] Payment Return Auth Debug - User ID: 45
[22-Dec-2025 14:11:54 Europe/Berlin] Payment Return Auth Debug - Role: NOT SET
[22-Dec-2025 14:11:54 Europe/Berlin] Payment Return Auth Debug - Is Logged In: YES
[22-Dec-2025 14:11:54 Europe/Berlin] PayFast Return Parameters: Array
(
    [type] => cart
)

[22-Dec-2025 14:11:54 Europe/Berlin] Payment Return: Cart payment detected - clearing session cart immediately
[22-Dec-2025 14:11:55 Europe/Berlin] Payment Return Debug - Session Data: Array
(
    [created_at] => 1766409063
    [last_regeneration] => 1766409063
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409063
    [session_started_at] => 2025-12-22 14:11:03
    [cart] => Array
        (
        )

    [payment_amount] => 3000
    [payment_course_titles] => Array
        (
            [0] => Data analytics
        )

    [payment_course_ids] => Array
        (
            [0] => 21
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 21
                    [title] => Data analytics
                    [description] => welcome
                    [price] => 3000.00
                    [thumbnail] => ../uploads/thumbnails/course_1766408842_6949428adbc9a.jpeg
                    [teacher_first_name] => Jonnie
                    [teacher_last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

)

[22-Dec-2025 14:11:55 Europe/Berlin] Payment Return Debug - GET params: Array
(
    [type] => cart
)

[22-Dec-2025 14:11:55 Europe/Berlin] Payment Return Debug - Is Cart Payment: YES
[22-Dec-2025 14:11:56 Europe/Berlin] Revenue sharing processed for enrollment 81, purchase 78
[22-Dec-2025 14:11:56 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Data analytics" - Access Now Available! - failed
[22-Dec-2025 14:11:57 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Data analytics" - Access Now Available! - sent
[22-Dec-2025 14:11:57 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Data analytics" - Access Now Available! - sent
[22-Dec-2025 14:11:57 Europe/Berlin] Purchase confirmation email sent: SUCCESS for course 21 to user 45
[22-Dec-2025 14:11:57 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "Data analytics" - New Student Enrolled! - failed
[22-Dec-2025 14:11:57 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "Data analytics" - New Student Enrolled! - sent
[22-Dec-2025 14:11:57 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "Data analytics" - New Student Enrolled! - sent
[22-Dec-2025 14:11:57 Europe/Berlin] Teacher sale notification email sent: SUCCESS for course 21 to teacher
[22-Dec-2025 14:11:58 Europe/Berlin] Payment record SQL error: 
[22-Dec-2025 14:11:58 Europe/Berlin] TEACHER COMMISSION SUCCESS: Inserted R150 commission for teacher 44 from referral 36
[22-Dec-2025 14:11:58 Europe/Berlin] Cart referral rewards processed - 1 rewards given
[22-Dec-2025 14:12:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:12:06 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:12:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409063
    [last_regeneration] => 1766409063
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409063
    [session_started_at] => 2025-12-22 14:11:03
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 21
                    [title] => Data analytics
                    [price] => 3000.00
                    [thumbnail] => ../uploads/thumbnails/course_1766408842_6949428adbc9a.jpeg
                    [description] => welcome
                    [first_name] => Jonnie
                    [last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 3000
)

[22-Dec-2025 14:18:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:18:13 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:18:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409492
    [last_regeneration] => 1766409492
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409492
    [session_started_at] => 2025-12-22 14:18:13
)

[22-Dec-2025 14:18:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:18:13 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:18:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409492
    [last_regeneration] => 1766409492
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409492
    [session_started_at] => 2025-12-22 14:18:13
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:18:13 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 14:18:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:18:16 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:18:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409492
    [last_regeneration] => 1766409492
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409492
    [session_started_at] => 2025-12-22 14:18:13
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:18:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:18:21 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:18:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409492
    [last_regeneration] => 1766409492
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409492
    [session_started_at] => 2025-12-22 14:18:13
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:18:21 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 14:18:21 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 14:18:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 14:18:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49]
[22-Dec-2025 14:18:21 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 14:18:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:18:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:18:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:18:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:18:21 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 14:18:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:18:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:18:21 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:18:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 14:18:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 14:18:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 14:18:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 14:19:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:19:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:19:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409570
    [last_regeneration] => 1766409570
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409570
    [session_started_at] => 2025-12-22 14:19:30
)

[22-Dec-2025 14:19:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:19:31 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:19:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409570
    [last_regeneration] => 1766409570
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409570
    [session_started_at] => 2025-12-22 14:19:30
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:19:31 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 14:19:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:19:47 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:19:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409570
    [last_regeneration] => 1766409570
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409570
    [session_started_at] => 2025-12-22 14:19:30
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:19:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:19:52 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:19:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409570
    [last_regeneration] => 1766409570
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409570
    [session_started_at] => 2025-12-22 14:19:30
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:19:53 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 14:19:53 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 14:19:53 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 14:19:53 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49]
[22-Dec-2025 14:19:53 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 14:19:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:19:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:19:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:19:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:19:54 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 14:19:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:19:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:19:54 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:19:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 14:19:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 14:19:54 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 14:19:54 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 14:21:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:21:14 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:21:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409570
    [last_regeneration] => 1766409570
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409570
    [session_started_at] => 2025-12-22 14:19:30
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:21:14 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 14:21:14 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 14:21:14 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 48
[22-Dec-2025 14:21:14 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 48
[22-Dec-2025 14:21:14 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=48
[22-Dec-2025 14:21:14 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 14:21:14 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 14:21:14 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 14:21:14 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 48
[22-Dec-2025 14:21:14 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 14:21:14 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:21:14 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 14:21:14 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 14:21:14 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:21:14 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:21:14 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 14:21:14 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:21:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:21:43 Europe/Berlin] DEBUG - Session data: {"created_at":1766409570,"last_regeneration":1766409570,"user_id":45,"username":"kanicl","email":"swususan0@gmail.com","first_name":"Brian","last_name":"Kan","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1766409570,"session_started_at":"2025-12-22 14:19:30","cart":[]}
[22-Dec-2025 14:21:43 Europe/Berlin] DEBUG - POST data: {"video_id":"48","user_id":"1","completion_percentage":"100.00","completed_at":"2025-12-22 13:21:48"}
[22-Dec-2025 14:21:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:21:45 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:21:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409570
    [last_regeneration] => 1766409570
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409570
    [session_started_at] => 2025-12-22 14:19:30
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:21:45 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 14:21:45 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 14:21:45 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 48
[22-Dec-2025 14:21:45 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 48
[22-Dec-2025 14:21:45 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=48
[22-Dec-2025 14:21:45 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 14:21:45 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 14:21:45 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 14:21:45 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 48
[22-Dec-2025 14:21:45 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 14:21:45 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:21:45 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 14:21:45 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 14:21:45 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:21:45 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:21:45 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 14:21:45 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:22:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:22:06 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:22:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409570
    [last_regeneration] => 1766409570
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409570
    [session_started_at] => 2025-12-22 14:19:30
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:22:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 14:22:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 14:22:06 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 48
[22-Dec-2025 14:22:06 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 14:22:06 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49]
[22-Dec-2025 14:22:06 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 2, Completed: 0, Percentage: 0%
[22-Dec-2025 14:22:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:22:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:22:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:22:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:22:06 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 14:22:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:22:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:22:06 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:22:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 14:22:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 14:22:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 14:22:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 14:22:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:22:16 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:22:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766409570
    [last_regeneration] => 1766409570
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766409570
    [session_started_at] => 2025-12-22 14:19:30
    [cart] => Array
        (
        )

)

[22-Dec-2025 14:22:16 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 14:22:16 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 14:22:16 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 48
[22-Dec-2025 14:22:16 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 48
[22-Dec-2025 14:22:16 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=48
[22-Dec-2025 14:22:16 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 14:22:16 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 14:22:16 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 14:22:16 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 48
[22-Dec-2025 14:22:16 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 14:22:16 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:22:16 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 14:22:16 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 14:22:16 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:22:16 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:22:16 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 14:22:16 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 14:39:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:39:16 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:39:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766410520
    [last_regeneration] => 1766410520
    [stored_redirect] => /teacher/videos.php?new_video=Ymg1azZHejF4NjM3TnMrNkpJWnM2Zz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766410520
    [session_started_at] => 2025-12-22 14:35:21
)

[22-Dec-2025 14:39:16 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 14:40:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:40:15 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:40:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1766410520
    [last_regeneration] => 1766410520
    [stored_redirect] => /teacher/videos.php?new_video=Ymg1azZHejF4NjM3TnMrNkpJWnM2Zz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766410520
    [session_started_at] => 2025-12-22 14:35:21
)

[22-Dec-2025 14:40:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:40:24 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:40:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766410520
    [last_regeneration] => 1766410520
    [stored_redirect] => /teacher/videos.php?new_video=Ymg1azZHejF4NjM3TnMrNkpJWnM2Zz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766410520
    [session_started_at] => 2025-12-22 14:35:21
)

[22-Dec-2025 14:40:24 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 14:40:24 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 14:40:24 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 14:40:24 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50]
[22-Dec-2025 14:40:24 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 14:40:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:40:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:40:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:40:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:40:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:40:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 14:40:25 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 14:40:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:40:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:40:25 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:40:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 14:40:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 14:40:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 14:40:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 14:41:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:41:11 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:41:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766410520
    [last_regeneration] => 1766410520
    [stored_redirect] => /teacher/videos.php?new_video=Ymg1azZHejF4NjM3TnMrNkpJWnM2Zz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766410520
    [session_started_at] => 2025-12-22 14:35:21
)

[22-Dec-2025 14:41:11 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 14:41:11 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 14:41:11 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 49
[22-Dec-2025 14:41:11 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 49
[22-Dec-2025 14:41:11 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=49
[22-Dec-2025 14:41:11 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 14:41:11 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 14:41:11 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 14:41:11 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 49
[22-Dec-2025 14:41:11 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 14:41:11 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 14:41:11 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 14:41:11 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 14:41:11 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 14:41:11 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 14:41:11 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 14:46:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:46:35 Europe/Berlin] DEBUG - Session data: {"created_at":1766410520,"last_regeneration":1766410520,"stored_redirect":"\/teacher\/videos.php?new_video=Ymg1azZHejF4NjM3TnMrNkpJWnM2Zz09","redirect_to_cart":false,"user_id":45,"username":"kanicl","email":"swususan0@gmail.com","first_name":"Brian","last_name":"Kan","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1766410520,"session_started_at":"2025-12-22 14:35:21"}
[22-Dec-2025 14:46:35 Europe/Berlin] DEBUG - POST data: {"video_id":"49","user_id":"1","completion_percentage":"100.00","completed_at":"2025-12-22 13:46:40"}
[22-Dec-2025 14:46:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:46:38 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:46:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766410520
    [last_regeneration] => 1766410520
    [stored_redirect] => /teacher/videos.php?new_video=Ymg1azZHejF4NjM3TnMrNkpJWnM2Zz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766410520
    [session_started_at] => 2025-12-22 14:35:21
)

[22-Dec-2025 14:46:39 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 14:46:39 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 14:46:39 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 49
[22-Dec-2025 14:46:39 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 49
[22-Dec-2025 14:46:39 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=49
[22-Dec-2025 14:46:39 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 14:46:39 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 14:46:39 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 14:46:39 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 49
[22-Dec-2025 14:46:39 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 14:46:40 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 14:46:40 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 14:46:40 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 14:46:40 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 14:46:40 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 14:46:40 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 14:47:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 14:47:11 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 14:47:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766410520
    [last_regeneration] => 1766410520
    [stored_redirect] => /teacher/videos.php?new_video=Ymg1azZHejF4NjM3TnMrNkpJWnM2Zz09
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766410520
    [session_started_at] => 2025-12-22 14:35:21
)

[22-Dec-2025 14:47:11 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 14:47:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 14:47:12 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 49
[22-Dec-2025 14:47:12 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 49
[22-Dec-2025 14:47:12 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50]
[22-Dec-2025 14:47:12 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 3, Completed: 0, Percentage: 0%
[22-Dec-2025 14:47:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:47:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:47:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:47:12 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 14:47:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 14:47:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 14:47:13 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 14:47:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:47:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:47:14 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 14:47:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 14:47:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 14:47:14 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 14:47:14 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:02:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:02:17 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:02:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
)

[22-Dec-2025 15:02:17 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:02:17 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
)

[22-Dec-2025 15:02:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:02:17 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:02:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:02:17 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:02:17 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:02:18 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 15:02:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:02:22 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:02:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:02:22 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:02:22 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:02:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:02:28 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:02:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:02:28 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:02:28 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:02:28 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 15:02:28 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 15:02:28 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 15:02:28 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52]
[22-Dec-2025 15:02:28 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 4, Completed: 0, Percentage: 0%
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:02:28 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:02:28 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:02:28 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:02:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:02:36 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:02:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:02:36 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:02:36 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:02:36 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:02:36 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:02:36 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 50
[22-Dec-2025 15:02:36 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 50
[22-Dec-2025 15:02:36 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=50
[22-Dec-2025 15:02:36 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:02:36 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:02:36 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:02:36 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 50
[22-Dec-2025 15:02:36 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:02:36 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 15:02:36 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:02:36 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 15:02:36 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 15:02:36 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 15:02:36 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 15:03:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:03:18 Europe/Berlin] DEBUG - Session data: {"created_at":1766412136,"last_regeneration":1766412136,"user_id":45,"username":"kanicl","email":"swususan0@gmail.com","first_name":"Brian","last_name":"Kan","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1766412136,"session_started_at":"2025-12-22 15:02:17","cart":[]}
[22-Dec-2025 15:03:18 Europe/Berlin] DEBUG - POST data: {"video_id":"50","user_id":"1","completion_percentage":"100.00","completed_at":"2025-12-22 14:03:23"}
[22-Dec-2025 15:03:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:03:21 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:03:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:03:21 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:03:21 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:03:21 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:03:21 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:03:21 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 50
[22-Dec-2025 15:03:21 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 50
[22-Dec-2025 15:03:21 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=50
[22-Dec-2025 15:03:21 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:03:21 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:03:21 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:03:21 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 50
[22-Dec-2025 15:03:21 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:03:21 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 15:03:21 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:03:21 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 15:03:21 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 15:03:21 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 15:03:21 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 15:04:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:04:21 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:04:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:04:21 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:04:21 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412136
    [last_regeneration] => 1766412136
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412136
    [session_started_at] => 2025-12-22 15:02:17
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:04:21 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 15:04:21 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 15:04:21 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 50
[22-Dec-2025 15:04:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 50
[22-Dec-2025 15:04:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52]
[22-Dec-2025 15:04:21 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 4, Completed: 0, Percentage: 0%
[22-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:04:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:04:21 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 15:04:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:04:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:04:22 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:04:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:04:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:04:22 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:04:22 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:06:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:06:24 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:06:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412382
    [last_regeneration] => 1766412382
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412382
    [session_started_at] => 2025-12-22 15:06:24
)

[22-Dec-2025 15:06:24 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:06:24 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412382
    [last_regeneration] => 1766412382
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412382
    [session_started_at] => 2025-12-22 15:06:24
)

[22-Dec-2025 15:06:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:06:25 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:06:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412382
    [last_regeneration] => 1766412382
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412382
    [session_started_at] => 2025-12-22 15:06:24
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:06:25 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:06:25 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412382
    [last_regeneration] => 1766412382
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412382
    [session_started_at] => 2025-12-22 15:06:24
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:06:25 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 15:06:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:06:28 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:06:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412382
    [last_regeneration] => 1766412382
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412382
    [session_started_at] => 2025-12-22 15:06:24
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:06:28 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:06:28 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412382
    [last_regeneration] => 1766412382
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412382
    [session_started_at] => 2025-12-22 15:06:24
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:06:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:06:33 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:06:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412382
    [last_regeneration] => 1766412382
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412382
    [session_started_at] => 2025-12-22 15:06:24
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:06:33 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:06:33 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412382
    [last_regeneration] => 1766412382
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412382
    [session_started_at] => 2025-12-22 15:06:24
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:06:34 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 15:06:34 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 15:06:34 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 15:06:34 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53]
[22-Dec-2025 15:06:34 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 5, Completed: 0, Percentage: 0%
[22-Dec-2025 15:06:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:06:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:06:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:06:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:06:35 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:06:35 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:06:35 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:10:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:10:07 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:10:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
)

[22-Dec-2025 15:10:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:10:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
)

[22-Dec-2025 15:10:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:10:07 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:10:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:10:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:10:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:10:08 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 15:10:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:10:10 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:10:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:10:10 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:10:10 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:10:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:10:14 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:10:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:10:14 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:10:14 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:10:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:10:19 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:10:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:10:19 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:10:19 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:10:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 15:10:20 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 15:10:21 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 15:10:21 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 15:10:21 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:10:21 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:10:21 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:10:21 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:10:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:10:27 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:10:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:10:27 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:10:27 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:10:27 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:10:27 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:10:27 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 53
[22-Dec-2025 15:10:27 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 53
[22-Dec-2025 15:10:27 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=53
[22-Dec-2025 15:10:27 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:10:27 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:10:27 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:10:27 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 53
[22-Dec-2025 15:10:27 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:10:27 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 15:10:27 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:10:27 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 15:10:27 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 15:10:27 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 15:10:27 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 15:12:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:12:57 Europe/Berlin] DEBUG - Session data: {"created_at":1766412606,"last_regeneration":1766412606,"user_id":45,"username":"kanicl","email":"swususan0@gmail.com","first_name":"Brian","last_name":"Kan","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1766412606,"session_started_at":"2025-12-22 15:10:07","cart":[]}
[22-Dec-2025 15:12:57 Europe/Berlin] DEBUG - POST data: {"video_id":"53","user_id":"1","completion_percentage":"100.00","completed_at":"2025-12-22 14:13:02"}
[22-Dec-2025 15:12:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:12:59 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:12:59 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:12:59 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:12:59 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:12:59 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:12:59 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:12:59 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 54
[22-Dec-2025 15:12:59 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 54
[22-Dec-2025 15:12:59 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=54
[22-Dec-2025 15:12:59 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:12:59 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:12:59 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:12:59 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 54
[22-Dec-2025 15:12:59 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:12:59 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 15:12:59 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:12:59 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 15:12:59 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 15:12:59 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 15:12:59 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 15:14:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:14:07 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:14:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:14:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:14:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:14:07 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:14:07 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:14:07 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 52
[22-Dec-2025 15:14:07 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 52
[22-Dec-2025 15:14:07 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=52
[22-Dec-2025 15:14:07 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:14:07 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:14:07 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:14:07 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 52
[22-Dec-2025 15:14:07 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:14:07 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 15:14:07 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:14:07 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 15:14:07 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 15:14:07 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 15:14:07 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 15:14:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:14:12 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:14:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:14:12 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:14:12 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:14:12 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:14:12 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:14:12 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 50
[22-Dec-2025 15:14:12 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 50
[22-Dec-2025 15:14:12 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=50
[22-Dec-2025 15:14:12 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:14:12 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:14:12 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:14:12 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 50
[22-Dec-2025 15:14:12 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:14:12 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 15:14:12 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:14:12 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 15:14:12 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 15:14:12 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 15:14:12 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 15:14:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:14:17 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:14:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:14:17 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:14:17 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:14:17 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 15:14:17 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 15:14:18 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 50
[22-Dec-2025 15:14:18 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 50
[22-Dec-2025 15:14:18 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 15:14:18 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:14:18 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:14:18 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:14:18 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:29:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:29:28 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:29:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:29:28 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:29:28 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:29:28 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 15:29:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:29:31 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:29:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:29:31 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:29:31 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766412606
    [last_regeneration] => 1766412606
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766412606
    [session_started_at] => 2025-12-22 15:10:07
    [cart] => Array
        (
        )

)

[22-Dec-2025 15:29:31 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 15:29:31 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 15:29:31 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 50
[22-Dec-2025 15:29:31 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 50
[22-Dec-2025 15:29:31 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 15:29:31 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:29:32 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:29:32 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:29:32 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:30:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:30:25 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 15:30:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
)

[22-Dec-2025 15:30:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:30:34 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:30:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:30:34 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:30:34 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:30:34 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 15:30:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:30:37 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:30:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:30:37 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:30:37 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:30:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:30:42 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:30:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:30:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:30:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:30:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 15:30:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 15:30:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 15:30:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 15:30:43 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:30:43 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:30:43 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:30:43 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:30:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:30:53 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:30:53 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:30:53 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:30:53 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:30:53 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:30:53 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:30:53 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 54
[22-Dec-2025 15:30:53 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 54
[22-Dec-2025 15:30:53 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=54
[22-Dec-2025 15:30:53 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:30:53 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:30:53 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:30:53 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 54
[22-Dec-2025 15:30:53 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:30:53 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 15:30:53 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:30:53 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 15:30:53 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 15:30:53 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 15:30:53 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 15:33:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:33:49 Europe/Berlin] DEBUG - Session data: {"session_started_at":"2025-12-22 15:30:25","created_at":1766413833,"last_regeneration":1766413833,"stored_redirect":"\/student\/dashboard.php","redirect_to_cart":false,"user_id":45,"username":"kanicl","email":"swususan0@gmail.com","first_name":"Brian","last_name":"Kan","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1766413833}
[22-Dec-2025 15:33:49 Europe/Berlin] DEBUG - POST data: {"video_id":"54","user_id":"1","completion_percentage":"100.00","completed_at":"2025-12-22 14:33:54"}
[22-Dec-2025 15:33:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:33:51 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:33:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:33:51 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:33:51 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:33:51 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:33:51 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:33:51 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 56
[22-Dec-2025 15:33:51 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 56
[22-Dec-2025 15:33:51 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=56
[22-Dec-2025 15:33:51 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:33:51 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:33:51 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:33:51 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 56
[22-Dec-2025 15:33:51 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:33:51 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 15:33:51 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:33:51 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 15:33:51 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 15:33:51 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 15:33:51 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 15:36:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:36:22 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:36:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:36:22 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:36:22 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:36:22 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 15:36:22 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 15:36:23 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 50
[22-Dec-2025 15:36:23 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 50
[22-Dec-2025 15:36:23 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 15:36:23 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:36:23 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:36:23 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:36:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:44:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:44:12 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:44:12 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:44:12 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:44:12 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:44:12 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:44:12 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:44:12 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 49
[22-Dec-2025 15:44:12 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 49
[22-Dec-2025 15:44:12 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=49
[22-Dec-2025 15:44:12 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:44:12 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:44:12 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:44:12 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 49
[22-Dec-2025 15:44:12 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:44:12 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 15:44:12 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:44:12 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 15:44:12 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 15:44:12 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 15:44:12 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 15:44:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:44:20 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:44:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:44:20 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:44:20 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:44:20 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:44:20 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:44:20 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 48
[22-Dec-2025 15:44:20 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 48
[22-Dec-2025 15:44:20 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=48
[22-Dec-2025 15:44:20 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:44:20 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:44:20 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:44:20 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 48
[22-Dec-2025 15:44:20 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:44:20 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 15:44:20 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:44:20 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 15:44:20 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 15:44:20 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 15:44:20 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 15:44:20 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 15:44:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:44:23 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:44:23 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:44:23 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:44:23 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:44:23 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 15:44:23 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 15:44:23 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 48
[22-Dec-2025 15:44:23 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 15:44:23 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 15:44:23 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:44:23 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:44:23 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:44:23 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:48:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:48:16 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:48:16 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:48:16 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:48:16 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:48:16 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 15:48:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 15:48:17 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 48
[22-Dec-2025 15:48:17 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 15:48:17 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 15:48:17 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 15:48:17 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:48:17 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:48:17 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 15:48:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 15:48:59 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 15:48:59 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:48:59 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 15:48:59 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 15:30:25
    [created_at] => 1766413833
    [last_regeneration] => 1766413833
    [stored_redirect] => /student/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766413833
)

[22-Dec-2025 15:48:59 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 15:48:59 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 15:48:59 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 49
[22-Dec-2025 15:48:59 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 49
[22-Dec-2025 15:48:59 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=49
[22-Dec-2025 15:48:59 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 15:48:59 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 15:48:59 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 15:48:59 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 49
[22-Dec-2025 15:48:59 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 15:48:59 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 15:48:59 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 15:48:59 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 15:48:59 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 15:48:59 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 15:48:59 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 16:25:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:25:52 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 16:25:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766416555
    [last_regeneration] => 1766416555
    [session_started_at] => 2025-12-22 16:25:52
)

[22-Dec-2025 16:36:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:36:29 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:36:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
)

[22-Dec-2025 16:36:29 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:36:29 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
)

[22-Dec-2025 16:36:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:36:29 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:36:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

)

[22-Dec-2025 16:36:29 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:36:29 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

)

[22-Dec-2025 16:36:29 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 16:36:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:36:36 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:36:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

)

[22-Dec-2025 16:36:36 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:36:36 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

)

[22-Dec-2025 16:36:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:36:39 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 16:36:39 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:36:39
)

[22-Dec-2025 16:36:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:36:48 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:36:48 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

)

[22-Dec-2025 16:36:48 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:36:48 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

)

[22-Dec-2025 16:36:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:36:51 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 16:36:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:36:51
)

[22-Dec-2025 16:36:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:36:55 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:36:55 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

)

[22-Dec-2025 16:36:55 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:36:55 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

)

[22-Dec-2025 16:36:55 Europe/Berlin] CART CLEARING: Cleared session cart during checkout process for user 45
[22-Dec-2025 16:36:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:36:58 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 16:36:58 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:36:58
)

[22-Dec-2025 16:37:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:37:00 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:37:00 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:37:00 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:37:00 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:37:00 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 16:37:23 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[22-Dec-2025 16:37:23 Europe/Berlin] Certificate Generation Error: Student not found
[22-Dec-2025 16:37:23 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[22-Dec-2025 16:37:23 Europe/Berlin] Certificate Generation Error: Student not found
[22-Dec-2025 16:37:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:37:39 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:37:39 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:37:39 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:37:39 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:37:39 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 16:37:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:37:43 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:37:43 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:37:43 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:37:43 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:37:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:37:51 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:37:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:37:51 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:37:51 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:37:51 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 16:37:51 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 16:37:51 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 16:37:51 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 16:37:51 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:37:51 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 16:37:51 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 16:37:51 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 16:38:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:38:09 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:38:09 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:38:09 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:38:09 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:38:09 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 16:38:09 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 16:38:09 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 48
[22-Dec-2025 16:38:09 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 48
[22-Dec-2025 16:38:09 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=48
[22-Dec-2025 16:38:09 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 16:38:09 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 16:38:09 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 16:38:09 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 48
[22-Dec-2025 16:38:09 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 16:38:09 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 16:38:09 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 16:38:09 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = file
[22-Dec-2025 16:38:09 Europe/Berlin] 🔍 BACKEND DEBUG: Processing video_url: uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 16:38:09 Europe/Berlin] 🎬 BACKEND WARNING: Detected other external URL video: uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 16:38:09 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = file, video_platform = external_url
[22-Dec-2025 16:38:09 Europe/Berlin] 🔧 BACKEND FIX: Corrected local video URL path: ../uploads/videos/video_694942c5c087c_1766408901.mp4
[22-Dec-2025 16:38:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:38:19 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:38:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:38:19 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:38:19 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:38:19 Europe/Berlin] ✅ COURSE ID: Received course_id: 21...
[22-Dec-2025 16:38:19 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 21
[22-Dec-2025 16:38:19 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 56
[22-Dec-2025 16:38:19 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 56
[22-Dec-2025 16:38:19 Europe/Berlin] 🎯 FINAL IDs: course_id=21, lesson_id=56
[22-Dec-2025 16:38:19 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[22-Dec-2025 16:38:19 Europe/Berlin] 🔍 DATABASE: Connection error: 
[22-Dec-2025 16:38:19 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[22-Dec-2025 16:38:19 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 21, lesson_id: 56
[22-Dec-2025 16:38:19 Europe/Berlin] ✅ QUERY: Successfully prepared
[22-Dec-2025 16:38:19 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[22-Dec-2025 16:38:19 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[22-Dec-2025 16:38:19 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[22-Dec-2025 16:38:19 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[22-Dec-2025 16:38:19 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[22-Dec-2025 16:38:19 Europe/Berlin] ❌ BACKEND: No video URL or path found
[22-Dec-2025 16:38:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:38:58 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:38:58 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:38:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:38:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-22 16:12:10
    [created_at] => 1766417788
    [last_regeneration] => 1766417788
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766417788
    [cart] => Array
        (
        )

    [payment_amount] => 1000
    [payment_course_titles] => Array
        (
            [0] => Cyber Security Defender
        )

    [payment_course_ids] => Array
        (
            [0] => 4
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 4
                    [title] => Cyber Security Defender
                    [description] => Cybersecurity Defenders are responsible for proactively protecting organisations’ systems from attacks, they 
are the first line of defence against cyberattacks, the first responders to cybersecurity breaches and are 
responsible for the hardening of the information systems of organisations ensuring compliance with 
legislation
                    [price] => 1000.00
                    [thumbnail] => ../uploads/thumbnails/course_1753310769_688166319a298.jpeg
                    [teacher_first_name] => Joy
                    [teacher_last_name] => Chikomo
                    [category_name] => Cyber Security
                )

        )

)

[22-Dec-2025 16:38:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 16:38:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 16:38:58 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 56
[22-Dec-2025 16:38:58 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 56
[22-Dec-2025 16:38:58 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 16:38:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:38:58 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 16:38:58 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 16:38:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 16:39:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:39:03 Europe/Berlin] isLoggedIn check result: false
[22-Dec-2025 16:39:03 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-22 16:39:03
)

[22-Dec-2025 16:40:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:40:57 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:40:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:40:57 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:40:57 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:40:57 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 16:40:57 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 16:40:57 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 56
[22-Dec-2025 16:40:57 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 56
[22-Dec-2025 16:40:57 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 16:40:57 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 16:40:57 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 16:40:57 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 16:40:57 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 16:41:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:41:02 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:41:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:41:02 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:41:02 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:41:02 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 16:41:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:41:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:41:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:41:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:41:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:52:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:52:24 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:52:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:52:24 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:52:24 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:52:24 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 16:57:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:57:01 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:57:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:57:01 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:57:01 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:57:01 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[22-Dec-2025 16:57:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 16:57:20 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 16:57:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 16:57:20 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 16:57:20 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:00:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:00:26 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:00:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:00:26 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:00:26 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:00:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:00:30 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:00:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:00:30 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:00:30 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:00:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:00:34 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:00:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:00:34 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:00:34 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:00:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:00:39 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:00:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:00:39 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:00:39 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:00:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:00:44 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:00:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:00:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:00:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:01:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:01:14 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:01:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:01:14 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:01:14 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:01:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:01:16 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:01:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:01:16 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:01:16 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:05:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:05:11 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:05:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:05:11 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:05:11 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:05:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:05:55 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:05:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:05:55 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:05:55 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:05:55 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[22-Dec-2025 17:05:55 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[22-Dec-2025 17:05:55 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[22-Dec-2025 17:05:55 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[22-Dec-2025 17:05:55 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[22-Dec-2025 17:05:55 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 17:05:55 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 17:05:55 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[22-Dec-2025 17:05:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:05:59 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:05:59 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:05:59 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:05:59 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:06:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:06:18 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:06:18 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:06:18 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:06:18 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:07:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:07:28 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:07:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:07:28 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:07:28 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:07:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:07:28 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:07:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:07:28 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:07:28 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:07:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:07:37 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:07:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:07:37 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:07:37 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
)

[22-Dec-2025 17:10:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:10:50 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:10:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[22-Dec-2025 17:10:50 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:10:50 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[22-Dec-2025 17:10:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:10:53 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:10:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[22-Dec-2025 17:10:53 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:10:53 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[22-Dec-2025 17:11:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:11:04 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:11:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[22-Dec-2025 17:11:04 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:11:04 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[22-Dec-2025 17:11:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:11:20 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:11:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:11:20 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:11:20 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:12:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:12:07 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:12:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:12:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:12:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:12:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:12:07 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:12:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:12:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:12:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:12:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:12:29 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:12:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:12:29 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:12:29 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:14:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:14:11 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:14:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:14:11 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:14:11 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:14:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:14:17 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:14:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:14:17 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:14:17 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:14:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:14:21 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:14:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:14:21 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:14:21 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:14:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:14:27 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:14:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:14:27 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:14:27 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:14:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:14:40 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:14:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:14:40 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:14:40 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:18:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:18:04 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:18:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:18:04 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:18:04 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:18:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:18:11 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:18:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:18:11 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:18:11 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:22:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:22:00 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:22:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:22:00 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:22:00 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:22:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Dec-2025 17:22:14 Europe/Berlin] isLoggedIn check result: true
[22-Dec-2025 17:22:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[22-Dec-2025 17:22:14 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Dec-2025 17:22:14 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766418056
    [last_regeneration] => 1766418056
    [session_started_at] => 2025-12-22 16:25:52
    [stored_redirect] => /student/course-detail.php?id=YVhYS1JmNGRIMEFGZVJTUzlKSlhuZz09&lesson=56
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766418056
    [payment_amount] => 1200.00
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
    [cart] => Array
        (
        )

)

[23-Dec-2025 06:59:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 06:59:37 Europe/Berlin] isLoggedIn check result: false
[23-Dec-2025 06:59:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 06:59:37
)

[23-Dec-2025 07:16:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:16:29 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:16:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
)

[23-Dec-2025 07:16:29 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:16:29 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
)

[23-Dec-2025 07:16:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:16:29 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:16:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:16:29 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:16:29 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:16:29 Europe/Berlin] Dashboard hours debug: User 47 has total hours: 64
[23-Dec-2025 07:16:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:16:42 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:16:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:16:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:16:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:17:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:17:03 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:17:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:17:03 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:17:03 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:17:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:17:12 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:17:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:17:12 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:17:12 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:17:12 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[23-Dec-2025 07:17:12 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[23-Dec-2025 07:17:12 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[23-Dec-2025 07:17:12 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[23-Dec-2025 07:17:12 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[23-Dec-2025 07:17:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 07:17:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 07:17:13 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 07:17:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 07:17:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 07:17:13 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 07:17:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 07:17:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 07:17:13 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 07:17:13 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 07:17:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:17:29 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:17:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:17:29 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:17:29 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:17:29 Europe/Berlin] ✅ COURSE ID: Received course_id: 19...
[23-Dec-2025 07:17:29 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 19
[23-Dec-2025 07:17:29 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 45
[23-Dec-2025 07:17:29 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 45
[23-Dec-2025 07:17:29 Europe/Berlin] 🎯 FINAL IDs: course_id=19, lesson_id=45
[23-Dec-2025 07:17:29 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[23-Dec-2025 07:17:29 Europe/Berlin] 🔍 DATABASE: Connection error: 
[23-Dec-2025 07:17:29 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[23-Dec-2025 07:17:29 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 19, lesson_id: 45
[23-Dec-2025 07:17:29 Europe/Berlin] ✅ QUERY: Successfully prepared
[23-Dec-2025 07:17:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[23-Dec-2025 07:17:29 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[23-Dec-2025 07:17:29 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[23-Dec-2025 07:17:29 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[23-Dec-2025 07:17:29 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[23-Dec-2025 07:17:29 Europe/Berlin] ❌ BACKEND: No video URL or path found
[23-Dec-2025 07:18:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:18:16 Europe/Berlin] DEBUG - Session data: {"created_at":1766470588,"last_regeneration":1766470588,"user_id":47,"username":"Maphs","email":"mrmaphosa1987@gmail.com","first_name":"Cephas","last_name":"Maphs","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1766470588,"session_started_at":"2025-12-23 07:16:29","cart":[]}
[23-Dec-2025 07:18:16 Europe/Berlin] DEBUG - POST data: {"video_id":"45","user_id":"1","completion_percentage":"100.00","completed_at":"2025-12-21 03:32:33"}
[23-Dec-2025 07:18:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:18:33 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:18:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:18:33 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:18:33 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:18:33 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[23-Dec-2025 07:18:33 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[23-Dec-2025 07:18:33 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 45
[23-Dec-2025 07:18:33 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[23-Dec-2025 07:18:33 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[23-Dec-2025 07:18:33 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[23-Dec-2025 07:18:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 07:18:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 07:18:34 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 07:18:43 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 07:18:43 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 07:18:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:18:50 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:18:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:18:50 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:18:50 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:27:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:27:03 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:27:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:27:03 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:27:03 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:27:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:27:15 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:27:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:27:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:27:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:27:16 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[23-Dec-2025 07:27:16 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[23-Dec-2025 07:27:16 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[23-Dec-2025 07:27:16 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[23-Dec-2025 07:27:16 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[23-Dec-2025 07:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 07:27:16 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 07:27:16 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 07:28:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:28:52 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:28:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:28:52 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:28:52 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:28:52 Europe/Berlin] PayFast Return Debug - All GET params: Array
(
    [m_payment_id] => ACC_19_1766471287
)

[23-Dec-2025 07:28:52 Europe/Berlin] PayFast Return Debug - Payment ID: ACC_19_1766471287
[23-Dec-2025 07:28:52 Europe/Berlin] PayFast Return Debug - User ID: 47
[23-Dec-2025 07:28:52 Europe/Berlin] Payment return - Payment ID: ACC_19_1766471287
[23-Dec-2025 07:28:52 Europe/Berlin] Query result: Found 1 rows for payment ACC_19_1766471287
[23-Dec-2025 07:28:52 Europe/Berlin] Found request ID: 19, Status: pending
[23-Dec-2025 07:28:52 Europe/Berlin] ✅ Auto-verified payment: ACC_19_1766471287 for user 47
[23-Dec-2025 07:28:52 Europe/Berlin] Email logged successfully: mrmaphosa1987@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000019 - failed
[23-Dec-2025 07:28:53 Europe/Berlin] Email logged successfully: mrmaphosa1987@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000019 - sent
[23-Dec-2025 07:28:53 Europe/Berlin] Email logged successfully: mrmaphosa1987@gmail.com - 🎓 SITA Accreditation Request Confirmed - Request #000019 - sent
[23-Dec-2025 07:28:53 Europe/Berlin] ✅ Confirmation email sent for request ID: 19
[23-Dec-2025 07:28:53 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000019 - Action Required - failed
[23-Dec-2025 07:28:54 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000019 - Action Required - sent
[23-Dec-2025 07:28:54 Europe/Berlin] Email logged successfully: admin@panaditeacademy.com - 🔔 New SITA Accreditation Request #000019 - Action Required - sent
[23-Dec-2025 07:28:54 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000019 - Action Required - failed
[23-Dec-2025 07:28:54 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000019 - Action Required - sent
[23-Dec-2025 07:28:54 Europe/Berlin] Email logged successfully: accreditation@panaditeacademy.com - 🔔 New SITA Accreditation Request #000019 - Action Required - sent
[23-Dec-2025 07:28:54 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000019 - Action Required - failed
[23-Dec-2025 07:28:55 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000019 - Action Required - sent
[23-Dec-2025 07:28:55 Europe/Berlin] Email logged successfully: support@panaditeacademy.com - 🔔 New SITA Accreditation Request #000019 - Action Required - sent
[23-Dec-2025 07:28:55 Europe/Berlin] ✅ Admin notification email sent for request ID: 19
[23-Dec-2025 07:29:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:29:38 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:29:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:29:38 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:29:38 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:29:38 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[23-Dec-2025 07:29:38 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[23-Dec-2025 07:29:39 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[23-Dec-2025 07:29:39 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[23-Dec-2025 07:29:39 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[23-Dec-2025 07:29:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 07:29:39 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 07:29:39 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 07:32:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:32:56 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:32:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:32:56 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:32:56 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766470588
    [last_regeneration] => 1766470588
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766470588
    [session_started_at] => 2025-12-23 07:16:29
    [cart] => Array
        (
        )

)

[23-Dec-2025 07:32:56 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[23-Dec-2025 07:32:56 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[23-Dec-2025 07:32:56 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[23-Dec-2025 07:32:56 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[23-Dec-2025 07:32:56 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[23-Dec-2025 07:32:56 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 07:32:56 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 07:32:56 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 07:33:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:33:22 Europe/Berlin] isLoggedIn check result: false
[23-Dec-2025 07:33:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
)

[23-Dec-2025 07:33:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:33:36 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:33:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:33:36 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:33:36 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:33:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:33:56 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:33:56 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:33:56 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:33:56 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:34:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:34:30 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:34:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:34:30 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:34:30 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:39:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:39:36 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:39:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:39:36 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:39:36 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:39:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:39:49 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:39:49 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:39:49 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:39:49 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:39:49 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[23-Dec-2025 07:39:49 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[23-Dec-2025 07:39:49 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[23-Dec-2025 07:39:49 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[23-Dec-2025 07:39:49 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[23-Dec-2025 07:39:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 07:39:49 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 07:39:49 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 07:44:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Database connected successfully to twpurnyc_panadite_DB
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Review submission script started
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Form data received | Data: {"user_id":47,"course_id":"KzUvYVNwS3NVaktmNW5RYnJsVkxyZz09","rating":"5","title_length":17,"text_length":56}
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Course ID decryption | Data: {"encrypted":"KzUvYVNwS3NVaktmNW5RYnJsVkxyZz09","decrypted":19,"is_numeric":true}
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Course ID decrypted | Data: 19
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT enrollment_id FROM enrollments WHERE student_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT enrollment_id FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT id FROM enrollments WHERE student_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Enrollment query failed: SELECT id FROM enrollments WHERE user_id = ? AND course_id = ? AND status = 'active' - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'field list'
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Found enrollment with query: SELECT * FROM enrollments WHERE student_id = ? AND course_id = ? LIMIT 1
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT review_id FROM course_reviews WHERE user_id = ? AND course_id = ? - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'where clause'
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Review check query failed: SELECT * FROM course_reviews WHERE user_id = ? AND course_id = ? LIMIT 1 - SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user_id' in 'where clause'
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Course reviews table ensured successfully
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Review inserted successfully with query: INSERT INTO course_reviews (student_id, course_id, rating, review_title, review_text, is_approved, created_at, updated_at) VALUES (?, ?, ?, ?, ?, 1, NOW(), NOW()) | Data: {"review_id":"10"}
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Review saved successfully | Data: {"review_id":"10"}
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT: Exception occurred | Data: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'"
[23-Dec-2025 06:44:00 UTC] 📝 REVIEW SUBMIT ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause' | File: /home/twpurnyc/public_html/student/submit_review.php | Line: 297
[23-Dec-2025 07:44:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:44:13 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:44:13 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:44:13 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:44:13 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:44:13 Europe/Berlin] ACCREDITATION DEBUG - user_id: 47, course_id: 19, is_enrolled: YES
[23-Dec-2025 07:44:13 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[23-Dec-2025 07:44:13 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[23-Dec-2025 07:44:13 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[23-Dec-2025 07:44:13 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[23-Dec-2025 07:44:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 07:44:13 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 07:44:13 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 07:46:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:46:48 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:46:48 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:46:48 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:46:48 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:47:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:47:10 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:47:10 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:47:10 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:47:10 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:48:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:48:01 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:48:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:48:01 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:48:01 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:52:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:52:06 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:52:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:52:06 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:52:06 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:54:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:54:19 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:54:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:54:19 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:54:19 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:54:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:54:54 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:54:54 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:54:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:54:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:55:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:55:31 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:55:31 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:55:31 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:55:31 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:55:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:55:42 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:55:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:55:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:55:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
)

[23-Dec-2025 07:55:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:55:56 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:55:56 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
    [user_first_name] => Cephas
    [user_last_name] => Maphs
)

[23-Dec-2025 07:55:56 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:55:56 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
    [user_first_name] => Cephas
    [user_last_name] => Maphs
)

[23-Dec-2025 07:56:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:56:27 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 07:56:27 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
    [user_first_name] => Cephas
    [user_last_name] => Maphs
)

[23-Dec-2025 07:56:27 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 07:56:27 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2025-12-23 07:33:22
    [created_at] => 1766471615
    [last_regeneration] => 1766471615
    [stored_redirect] => /student/assignments.php
    [redirect_to_cart] => 
    [user_id] => 47
    [username] => Maphs
    [email] => mrmaphosa1987@gmail.com
    [first_name] => Cephas
    [last_name] => Maphs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766471615
    [user_first_name] => Cephas
    [user_last_name] => Maphs
)

[23-Dec-2025 07:59:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 07:59:34 Europe/Berlin] isLoggedIn check result: false
[23-Dec-2025 07:59:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1766472991
    [last_regeneration] => 1766472991
    [session_started_at] => 2025-12-23 07:56:44
)

[23-Dec-2025 08:05:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 08:05:49 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 08:05:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766473548
    [last_regeneration] => 1766473548
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766473548
    [session_started_at] => 2025-12-23 08:05:49
)

[23-Dec-2025 08:05:49 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 08:05:49 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766473548
    [last_regeneration] => 1766473548
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766473548
    [session_started_at] => 2025-12-23 08:05:49
)

[23-Dec-2025 08:05:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 08:05:49 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 08:05:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766473548
    [last_regeneration] => 1766473548
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766473548
    [session_started_at] => 2025-12-23 08:05:49
    [cart] => Array
        (
        )

)

[23-Dec-2025 08:05:49 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 08:05:49 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766473548
    [last_regeneration] => 1766473548
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766473548
    [session_started_at] => 2025-12-23 08:05:49
    [cart] => Array
        (
        )

)

[23-Dec-2025 08:05:49 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[23-Dec-2025 08:05:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 08:05:58 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 08:05:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766473548
    [last_regeneration] => 1766473548
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766473548
    [session_started_at] => 2025-12-23 08:05:49
    [cart] => Array
        (
        )

)

[23-Dec-2025 08:05:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 08:05:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766473548
    [last_regeneration] => 1766473548
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766473548
    [session_started_at] => 2025-12-23 08:05:49
    [cart] => Array
        (
        )

)

[23-Dec-2025 08:06:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 08:06:04 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 08:06:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1766473548
    [last_regeneration] => 1766473548
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766473548
    [session_started_at] => 2025-12-23 08:05:49
    [cart] => Array
        (
        )

)

[23-Dec-2025 08:06:04 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 08:06:04 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766473548
    [last_regeneration] => 1766473548
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766473548
    [session_started_at] => 2025-12-23 08:05:49
    [cart] => Array
        (
        )

)

[23-Dec-2025 08:06:04 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[23-Dec-2025 08:06:04 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[23-Dec-2025 08:06:05 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[23-Dec-2025 08:06:05 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[23-Dec-2025 08:06:05 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[23-Dec-2025 08:06:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 08:06:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 08:06:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 08:06:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 08:06:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 08:06:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 08:06:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 08:06:05 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 08:06:06 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 08:06:06 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 08:06:06 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 08:17:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 08:17:20 Europe/Berlin] isLoggedIn check result: false
[23-Dec-2025 08:17:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-23 08:17:20
)

[23-Dec-2025 08:48:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 08:48:58 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 08:48:58 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766476118
    [created_at] => 1766476118
    [last_regeneration] => 1766476118
    [session_started_at] => 2025-12-23 08:48:39
)

[23-Dec-2025 08:48:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: admin
[23-Dec-2025 08:48:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766476118
    [created_at] => 1766476118
    [last_regeneration] => 1766476118
    [session_started_at] => 2025-12-23 08:48:39
)

[23-Dec-2025 08:59:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 08:59:40 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 08:59:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766476780
    [last_regeneration] => 1766476780
    [session_started_at] => 2025-12-23 08:51:14
    [user_id] => 48
    [username] => lukiata
    [email] => alexdelpher@gmail.com
    [first_name] => Murin
    [last_name] => bulo
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766476780
)

[23-Dec-2025 08:59:40 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 08:59:40 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766476780
    [last_regeneration] => 1766476780
    [session_started_at] => 2025-12-23 08:51:14
    [user_id] => 48
    [username] => lukiata
    [email] => alexdelpher@gmail.com
    [first_name] => Murin
    [last_name] => bulo
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766476780
)

[23-Dec-2025 08:59:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 08:59:41 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 08:59:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766476780
    [last_regeneration] => 1766476780
    [session_started_at] => 2025-12-23 08:51:14
    [user_id] => 48
    [username] => lukiata
    [email] => alexdelpher@gmail.com
    [first_name] => Murin
    [last_name] => bulo
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766476780
    [cart] => Array
        (
        )

)

[23-Dec-2025 08:59:41 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 08:59:41 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766476780
    [last_regeneration] => 1766476780
    [session_started_at] => 2025-12-23 08:51:14
    [user_id] => 48
    [username] => lukiata
    [email] => alexdelpher@gmail.com
    [first_name] => Murin
    [last_name] => bulo
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766476780
    [cart] => Array
        (
        )

)

[23-Dec-2025 08:59:41 Europe/Berlin] Dashboard hours debug: User 48 has total hours: 0
[23-Dec-2025 10:38:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 10:38:43 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 10:38:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766482723
    [last_regeneration] => 1766482723
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766482723
    [session_started_at] => 2025-12-23 10:38:43
)

[23-Dec-2025 10:38:43 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 10:38:43 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766482723
    [last_regeneration] => 1766482723
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766482723
    [session_started_at] => 2025-12-23 10:38:43
)

[23-Dec-2025 10:38:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 10:38:44 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 10:38:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766482723
    [last_regeneration] => 1766482723
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766482723
    [session_started_at] => 2025-12-23 10:38:43
    [cart] => Array
        (
        )

)

[23-Dec-2025 10:38:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 10:38:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766482723
    [last_regeneration] => 1766482723
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766482723
    [session_started_at] => 2025-12-23 10:38:43
    [cart] => Array
        (
        )

)

[23-Dec-2025 10:38:44 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[23-Dec-2025 10:38:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 10:38:48 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 10:38:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766482723
    [last_regeneration] => 1766482723
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766482723
    [session_started_at] => 2025-12-23 10:38:43
    [cart] => Array
        (
        )

)

[23-Dec-2025 10:38:48 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 10:38:48 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766482723
    [last_regeneration] => 1766482723
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766482723
    [session_started_at] => 2025-12-23 10:38:43
    [cart] => Array
        (
        )

)

[23-Dec-2025 10:46:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 10:46:55 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 10:46:55 Europe/Berlin] Session data: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766483149
    [created_at] => 1766483149
    [last_regeneration] => 1766483149
    [session_started_at] => 2025-12-23 10:45:49
)

[23-Dec-2025 10:46:55 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: admin
[23-Dec-2025 10:46:55 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [user_id] => 999
    [username] => admin
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766483149
    [created_at] => 1766483149
    [last_regeneration] => 1766483149
    [session_started_at] => 2025-12-23 10:45:49
)

[23-Dec-2025 12:18:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:18:25 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:18:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
)

[23-Dec-2025 12:18:25 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:18:25 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
)

[23-Dec-2025 12:18:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:18:25 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:18:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:18:25 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:18:25 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:18:26 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[23-Dec-2025 12:18:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:18:30 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:18:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:18:30 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:18:30 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:18:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:18:35 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:18:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:18:35 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:18:35 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:18:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[23-Dec-2025 12:18:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[23-Dec-2025 12:18:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[23-Dec-2025 12:18:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[23-Dec-2025 12:18:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 12:18:36 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 12:18:36 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 12:18:36 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 12:18:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:18:58 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:18:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:18:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:18:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:19:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:19:59 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:19:59 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:19:59 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:19:59 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:20:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:20:00 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:20:00 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:20:00 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:20:00 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:21:01 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:21:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:01 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:21:01 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:21:02 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:21:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:02 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:21:02 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:21:03 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:21:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:03 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:21:03 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:21:04 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:21:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:04 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:21:04 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:21:05 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:21:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:05 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:21:05 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:21:06 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:21:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:06 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:21:06 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:21:07 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:21:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:21:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:21:08 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:21:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:08 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:21:08 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:21:09 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:21:09 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:09 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:21:09 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:21:10 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:21:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:21:10 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:21:10 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:22:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:22:11 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:22:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:22:11 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:22:11 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:22:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:22:12 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:22:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:22:12 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:22:12 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:22:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:22:13 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:22:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:22:13 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:22:13 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:22:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:22:14 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:22:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:22:14 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:22:14 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:22:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:22:15 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:22:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:22:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:22:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:23:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:23:18 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:23:18 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:23:18 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:23:18 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:23:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:23:20 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:23:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:23:20 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:23:20 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:23:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:23:21 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:23:21 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:23:21 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:23:21 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:23:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:23:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:23:23 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:23:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:23:23 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:23:23 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:24:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:24:32 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:24:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:24:32 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:24:32 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:33 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:33 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:33 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:35 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:35 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:35 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:36 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:36 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:36 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:36 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:36 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:36 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:37 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:37 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:37 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:38 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:38 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:38 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:39 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:39 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:39 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:39 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:39 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:39 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:40 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:40 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:40 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:40 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:40 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:40 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:40 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:40 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:40 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:40 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:40 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:40 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:42 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:42 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:43 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:43 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:43 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:43 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:43 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:43 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:44 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:44 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:44 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:44 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:45 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:45 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:45 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:45 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:45 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:25:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:25:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:25:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:26:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:26:07 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:26:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:26:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:26:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:26:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:26:08 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:26:08 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:26:08 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:26:08 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:26:08 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[23-Dec-2025 12:26:08 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: {"request_id":6,"student_id":41,"course_id":14,"request_date":"2025-12-15 10:42:28","status":"certificate_issued","admin_notes":"Your accreditation request has been approved! Please complete the assignment above within 14 days.","approved_by":null,"approved_date":"2025-12-15 11:59:24","rejection_reason":null,"certificate_issued_date":"2025-12-15 16:33:55","certificate_number":null,"payment_amount":"500.00","payment_reference":"ACC_6_1765795348","payment_date":"2025-12-15 10:45:55","motivation_statement":null,"review_deadline":"2025-12-18","assignment_document_path":"[{\"original_name\":\"absa.png\",\"safe_filename\":\"20251215125924_0_absa.png\",\"file_size\":10989,\"file_path\":\"\\\/home\\\/twpurnyc\\\/public_html\\\/admin\\\/..\\\/uploads\\\/assignments\\\/request_6\\\/20251215125924_0_absa.png\"}]","assignment_created_date":"2025-12-15 11:59:24","assignment_instructions":"Based on your completed course, please submit the following documents:\r\n\r\n1. Updated CV\/Resume\r\n2. Copy of relevant qualifications\/certificates  \r\n3. Written assignment: Reflect on how this course will benefit your career (minimum 500 words)\r\n4. Proof of identity (ID copy)\r\n\r\nPlease upload all documents in a single ZIP file for easy processing.","documents_submitted_date":null,"final_admin_id":null,"final_review_date":null,"final_comments":"welcome","certificate_path":"\/uploads\/certificates\/cert_6_1765816435.pdf","created_at":"2025-12-15 10:42:28","updated_at":"2025-12-15 16:33:55","payment_status":"completed"}
[23-Dec-2025 12:26:09 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[23-Dec-2025 12:26:09 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[23-Dec-2025 12:26:09 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 12:26:09 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 12:26:09 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 12:26:09 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 12:26:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:26:31 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:26:31 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:26:31 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:26:31 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:26:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:26:38 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:26:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:26:38 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:26:38 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766488703
    [last_regeneration] => 1766488703
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766488703
    [session_started_at] => 2025-12-23 12:18:25
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:30:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:30:11 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:30:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489408
    [last_regeneration] => 1766489408
    [session_started_at] => 2025-12-23 12:27:49
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489408
)

[23-Dec-2025 12:30:11 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:30:11 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489408
    [last_regeneration] => 1766489408
    [session_started_at] => 2025-12-23 12:27:49
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489408
)

[23-Dec-2025 12:30:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:30:13 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:30:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489408
    [last_regeneration] => 1766489408
    [session_started_at] => 2025-12-23 12:27:49
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489408
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:30:13 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:30:13 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489408
    [last_regeneration] => 1766489408
    [session_started_at] => 2025-12-23 12:27:49
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489408
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:30:13 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[23-Dec-2025 12:30:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:30:19 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:30:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489408
    [last_regeneration] => 1766489408
    [session_started_at] => 2025-12-23 12:27:49
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489408
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:30:19 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:30:19 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489408
    [last_regeneration] => 1766489408
    [session_started_at] => 2025-12-23 12:27:49
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489408
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:30:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:30:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:30:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
)

[23-Dec-2025 12:30:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:30:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
)

[23-Dec-2025 12:30:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:30:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:30:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:30:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:30:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:30:46 Europe/Berlin] Dashboard hours debug: User 54 has total hours: 0
[23-Dec-2025 12:30:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:30:49 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:30:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:30:49 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:30:49 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:30:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:30:58 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:30:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:30:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:30:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:31:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:31:03 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:31:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:31:03 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:31:03 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:31:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:31:05 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:31:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:31:05 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:31:05 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:31:05 Europe/Berlin] CART CLEARING: Cleared session cart during checkout process for user 54
[23-Dec-2025 12:31:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:31:32 Europe/Berlin] Payment Return Auth Debug - User ID: 54
[23-Dec-2025 12:31:32 Europe/Berlin] Payment Return Auth Debug - Role: NOT SET
[23-Dec-2025 12:31:32 Europe/Berlin] Payment Return Auth Debug - Is Logged In: YES
[23-Dec-2025 12:31:32 Europe/Berlin] PayFast Return Parameters: Array
(
    [type] => cart
)

[23-Dec-2025 12:31:32 Europe/Berlin] Payment Return: Cart payment detected - clearing session cart immediately
[23-Dec-2025 12:31:32 Europe/Berlin] Payment Return Debug - Session Data: Array
(
    [created_at] => 1766489445
    [last_regeneration] => 1766489445
    [user_id] => 54
    [username] => Mukito
    [email] => alexdelpher@gmail.com
    [first_name] => Muko
    [last_name] => aito
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489445
    [session_started_at] => 2025-12-23 12:30:46
    [cart] => Array
        (
        )

    [payment_amount] => 3000
    [payment_course_titles] => Array
        (
            [0] => Data analytics
        )

    [payment_course_ids] => Array
        (
            [0] => 21
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 21
                    [title] => Data analytics
                    [description] => welcome
                    [price] => 3000.00
                    [thumbnail] => ../uploads/thumbnails/course_1766408842_6949428adbc9a.jpeg
                    [teacher_first_name] => Jonnie
                    [teacher_last_name] => Ngwenya
                    [category_name] => Data Science
                )

        )

)

[23-Dec-2025 12:31:32 Europe/Berlin] Payment Return Debug - GET params: Array
(
    [type] => cart
)

[23-Dec-2025 12:31:32 Europe/Berlin] Payment Return Debug - Is Cart Payment: YES
[23-Dec-2025 12:31:33 Europe/Berlin] Revenue sharing processed for enrollment 82, purchase 79
[23-Dec-2025 12:31:33 Europe/Berlin] Email logged successfully: alexdelpher@gmail.com - 🎉 Purchase Confirmed: "Data analytics" - Access Now Available! - failed
[23-Dec-2025 12:31:33 Europe/Berlin] Email logged successfully: alexdelpher@gmail.com - 🎉 Purchase Confirmed: "Data analytics" - Access Now Available! - sent
[23-Dec-2025 12:31:33 Europe/Berlin] Email logged successfully: alexdelpher@gmail.com - 🎉 Purchase Confirmed: "Data analytics" - Access Now Available! - sent
[23-Dec-2025 12:31:33 Europe/Berlin] Purchase confirmation email sent: SUCCESS for course 21 to user 54
[23-Dec-2025 12:31:33 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "Data analytics" - New Student Enrolled! - failed
[23-Dec-2025 12:31:34 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "Data analytics" - New Student Enrolled! - sent
[23-Dec-2025 12:31:34 Europe/Berlin] Email logged successfully: jacobsjames7890@gmail.com - 🎉 Course Sale: "Data analytics" - New Student Enrolled! - sent
[23-Dec-2025 12:31:34 Europe/Berlin] Teacher sale notification email sent: SUCCESS for course 21 to teacher
[23-Dec-2025 12:31:34 Europe/Berlin] Payment record SQL error: 
[23-Dec-2025 12:31:34 Europe/Berlin] Cart referral rewards processed - 1 rewards given
[23-Dec-2025 12:31:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:31:57 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:31:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
)

[23-Dec-2025 12:31:57 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:31:57 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
)

[23-Dec-2025 12:31:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:31:58 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:31:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:31:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:31:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:31:58 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[23-Dec-2025 12:32:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:32:02 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:32:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:32:02 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:32:02 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:32:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:32:36 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:32:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:32:36 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:32:36 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:32:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:32:54 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:32:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:32:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:32:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:34:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:34:15 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:34:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:34:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:34:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:34:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:34:19 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:34:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:34:19 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:34:19 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:34:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:34:26 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:34:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:34:26 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:34:26 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:35:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:35:41 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:35:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:35:41 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:35:41 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:35:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:35:52 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:35:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:35:52 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:35:52 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:36:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:36:01 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:36:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:36:01 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:36:01 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:36:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:36:28 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:36:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:36:28 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:36:28 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:36:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:36:41 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:36:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:36:41 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:36:41 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:36:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:36:58 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:36:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:36:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:36:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

)

[23-Dec-2025 12:44:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:44:45 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:44:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:44:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:44:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:45:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:45:01 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:45:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:45:01 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:45:01 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:45:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:45:04 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:45:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:45:04 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:45:04 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:45:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:45:26 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:45:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:45:26 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:45:26 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:45:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:45:37 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:45:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:45:37 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:45:37 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:46:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:46:07 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:46:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:46:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:46:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:47:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:47:24 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:47:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:47:24 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:47:24 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:47:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:47:57 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:47:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:47:57 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:47:57 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:56:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:56:10 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:56:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:56:10 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:56:10 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:59:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:59:07 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:59:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:59:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:59:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:59:14 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 12:59:14 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 12:59:14 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 12:59:14 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 12:59:14 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 13:03:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:03:06 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:03:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 13:03:06 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:03:06 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 13:03:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:03:15 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:03:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 13:03:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:03:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1000.00
    [payment_course_title] => New Venture Creation
    [payment_course_id] => 8
    [last_viewed_course] => 8
)

[23-Dec-2025 13:03:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:03:39 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:03:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Assessment Practitioner
    [payment_course_id] => 9
    [last_viewed_course] => 9
)

[23-Dec-2025 13:03:39 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:03:39 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Assessment Practitioner
    [payment_course_id] => 9
    [last_viewed_course] => 9
)

[23-Dec-2025 13:04:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:04:35 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:04:35 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Assessment Practitioner
    [payment_course_id] => 9
    [last_viewed_course] => 9
)

[23-Dec-2025 13:04:35 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:04:35 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Assessment Practitioner
    [payment_course_id] => 9
    [last_viewed_course] => 9
)

[23-Dec-2025 13:04:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:04:43 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:04:43 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Assessment Practitioner
    [payment_course_id] => 9
    [last_viewed_course] => 9
)

[23-Dec-2025 13:04:43 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:04:43 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Assessment Practitioner
    [payment_course_id] => 9
    [last_viewed_course] => 9
)

[23-Dec-2025 13:05:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:05:51 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:05:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Assessment Practitioner
    [payment_course_id] => 9
    [last_viewed_course] => 9
)

[23-Dec-2025 13:05:51 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:05:51 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Assessment Practitioner
    [payment_course_id] => 9
    [last_viewed_course] => 9
)

[23-Dec-2025 13:05:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:05:56 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:05:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Assessment Practitioner
    [payment_course_id] => 9
    [last_viewed_course] => 9
)

[23-Dec-2025 13:05:56 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:05:56 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Assessment Practitioner
    [payment_course_id] => 9
    [last_viewed_course] => 9
)

[23-Dec-2025 13:09:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:09:25 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:09:25 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Java Programmer
    [payment_course_id] => 6
    [last_viewed_course] => 6
)

[23-Dec-2025 13:09:25 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:09:25 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Java Programmer
    [payment_course_id] => 6
    [last_viewed_course] => 6
)

[23-Dec-2025 13:09:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:09:29 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:09:29 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Java Programmer
    [payment_course_id] => 6
    [last_viewed_course] => 6
)

[23-Dec-2025 13:09:29 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:09:29 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 950
    [payment_course_title] => Java Programmer
    [payment_course_id] => 6
    [last_viewed_course] => 6
)

[23-Dec-2025 13:16:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:16:26 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:16:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1140
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[23-Dec-2025 13:16:26 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:16:26 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1140
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[23-Dec-2025 13:16:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:16:52 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:16:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1140
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[23-Dec-2025 13:16:52 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:16:52 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1140
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[23-Dec-2025 13:17:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:17:30 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:17:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1140
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[23-Dec-2025 13:17:30 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:17:30 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766489517
    [last_regeneration] => 1766489517
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766489517
    [session_started_at] => 2025-12-23 12:31:57
    [cart] => Array
        (
        )

    [payment_amount] => 1140
    [payment_course_title] => Computer Literacy
    [payment_course_id] => 19
    [last_viewed_course] => 19
)

[23-Dec-2025 13:18:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:18:45 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:18:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766492324
    [last_regeneration] => 1766492324
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766492324
    [session_started_at] => 2025-12-23 13:18:45
)

[23-Dec-2025 13:18:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:18:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766492324
    [last_regeneration] => 1766492324
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766492324
    [session_started_at] => 2025-12-23 13:18:45
)

[23-Dec-2025 13:18:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 13:18:45 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 13:18:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766492324
    [last_regeneration] => 1766492324
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766492324
    [session_started_at] => 2025-12-23 13:18:45
    [cart] => Array
        (
        )

)

[23-Dec-2025 13:18:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 13:18:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766492324
    [last_regeneration] => 1766492324
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766492324
    [session_started_at] => 2025-12-23 13:18:45
    [cart] => Array
        (
        )

)

[23-Dec-2025 13:18:46 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[23-Dec-2025 14:03:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 14:03:13 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 14:03:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766494992
    [last_regeneration] => 1766494992
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766494992
    [session_started_at] => 2025-12-23 14:03:13
)

[23-Dec-2025 14:03:13 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 14:03:13 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766494992
    [last_regeneration] => 1766494992
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766494992
    [session_started_at] => 2025-12-23 14:03:13
)

[23-Dec-2025 14:03:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 14:03:13 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 14:03:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1766494992
    [last_regeneration] => 1766494992
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766494992
    [session_started_at] => 2025-12-23 14:03:13
    [cart] => Array
        (
        )

)

[23-Dec-2025 14:03:13 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 14:03:13 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766494992
    [last_regeneration] => 1766494992
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766494992
    [session_started_at] => 2025-12-23 14:03:13
    [cart] => Array
        (
        )

)

[23-Dec-2025 14:03:14 Europe/Berlin] Dashboard hours debug: User 41 has total hours: 50
[23-Dec-2025 14:03:14 Europe/Berlin] DASHBOARD.PHP CONTINUE LEARNING: Course ID 9 has NO CONTENT - Progress set to 0%
[23-Dec-2025 14:03:14 Europe/Berlin] DASHBOARD.PHP CONTINUE LEARNING: Course ID 11 has NO CONTENT - Progress set to 0%
[23-Dec-2025 16:21:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 16:21:52 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 16:21:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766503311
    [last_regeneration] => 1766503311
    [session_started_at] => 2025-12-23 15:08:42
    [stored_redirect] => /admin/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766503311
)

[23-Dec-2025 16:21:52 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 16:21:52 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766503311
    [last_regeneration] => 1766503311
    [session_started_at] => 2025-12-23 15:08:42
    [stored_redirect] => /admin/dashboard.php
    [redirect_to_cart] => 
    [user_id] => 41
    [username] => Kanbran
    [email] => alainkitumaini8@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766503311
)

[23-Dec-2025 16:21:52 Europe/Berlin] Dashboard hours debug: User 41 has total hours: 50
[23-Dec-2025 16:21:52 Europe/Berlin] DASHBOARD.PHP CONTINUE LEARNING: Course ID 9 has NO CONTENT - Progress set to 0%
[23-Dec-2025 16:21:52 Europe/Berlin] DASHBOARD.PHP CONTINUE LEARNING: Course ID 11 has NO CONTENT - Progress set to 0%
[23-Dec-2025 17:09:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:09:32 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:09:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766503378
    [last_regeneration] => 1766503378
    [user_id] => 1
    [username] => admin
    [email] => panadite@academy.com
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766503378
    [session_started_at] => 2025-12-23 16:22:59
)

[23-Dec-2025 17:09:32 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: admin
[23-Dec-2025 17:09:32 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766503378
    [last_regeneration] => 1766503378
    [user_id] => 1
    [username] => admin
    [email] => panadite@academy.com
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766503378
    [session_started_at] => 2025-12-23 16:22:59
)

[23-Dec-2025 17:44:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:44:11 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:44:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
)

[23-Dec-2025 17:44:11 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:44:11 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
)

[23-Dec-2025 17:44:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:44:12 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:44:12 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:12 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:44:12 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:12 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[23-Dec-2025 17:44:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:44:19 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:44:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:19 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:44:19 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:44:23 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:44:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:23 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:44:23 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:23 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[23-Dec-2025 17:44:23 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[23-Dec-2025 17:44:23 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[23-Dec-2025 17:44:23 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[23-Dec-2025 17:44:23 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[23-Dec-2025 17:44:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:44:25 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:44:25 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 17:44:25 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 17:44:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:44:42 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:44:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:44:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:44:51 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:44:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:51 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:44:51 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:44:52 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:44:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:52 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:44:52 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:44:56 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:44:56 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:56 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:44:56 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:44:58 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:44:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:44:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:44:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[23-Dec-2025 17:44:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[23-Dec-2025 17:44:58 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[23-Dec-2025 17:44:58 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[23-Dec-2025 17:44:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:44:58 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:44:58 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 17:44:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 17:45:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:45:07 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:45:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:45:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:45:17 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:45:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:17 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:45:17 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:45:18 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:45:18 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:18 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:45:18 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:45:24 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:45:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:24 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:45:24 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:45:30 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:45:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:30 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:45:30 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:30 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[23-Dec-2025 17:45:30 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[23-Dec-2025 17:45:30 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[23-Dec-2025 17:45:30 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[23-Dec-2025 17:45:30 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:45:30 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:45:30 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 17:45:30 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 17:45:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:45:37 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:45:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:37 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:45:37 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:45:46 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:45:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:45:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:45:47 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:45:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:47 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:45:47 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:45:50 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:45:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:50 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:45:50 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:45:53 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:45:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:53 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 17:45:53 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508251
    [last_regeneration] => 1766508251
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508251
    [session_started_at] => 2025-12-23 17:44:11
    [cart] => Array
        (
        )

)

[23-Dec-2025 17:45:53 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[23-Dec-2025 17:45:53 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[23-Dec-2025 17:45:53 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[23-Dec-2025 17:45:53 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[23-Dec-2025 17:45:53 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 17:45:53 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:45:53 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 17:45:53 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 17:47:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 17:47:22 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 17:47:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766508372
    [last_regeneration] => 1766508372
    [user_id] => 44
    [username] => Braining
    [email] => jacobsjames7890@gmail.com
    [first_name] => Jonnie
    [last_name] => Ngwenya
    [user_role] => teacher
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508372
    [session_started_at] => 2025-12-23 17:46:13
    [login_redirect_count] => 0
)

[23-Dec-2025 17:47:22 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: teacher
[23-Dec-2025 17:47:22 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766508372
    [last_regeneration] => 1766508372
    [user_id] => 44
    [username] => Braining
    [email] => jacobsjames7890@gmail.com
    [first_name] => Jonnie
    [last_name] => Ngwenya
    [user_role] => teacher
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766508372
    [session_started_at] => 2025-12-23 17:46:13
    [login_redirect_count] => 0
)

[23-Dec-2025 18:15:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 18:15:48 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 18:15:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1766510124
    [last_regeneration] => 1766510124
    [session_started_at] => 2025-12-23 18:15:20
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766510124
)

[23-Dec-2025 18:15:48 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 18:15:48 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766510124
    [last_regeneration] => 1766510124
    [session_started_at] => 2025-12-23 18:15:20
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766510124
)

[23-Dec-2025 18:15:51 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[23-Dec-2025 18:17:26 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:17:26 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:17:26 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:17:26 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:22:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 18:22:32 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 18:22:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1766510124
    [last_regeneration] => 1766510124
    [session_started_at] => 2025-12-23 18:15:20
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766510124
)

[23-Dec-2025 18:22:32 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 18:22:32 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766510124
    [last_regeneration] => 1766510124
    [session_started_at] => 2025-12-23 18:15:20
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766510124
)

[23-Dec-2025 18:22:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 18:22:37 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 18:22:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1766510124
    [last_regeneration] => 1766510124
    [session_started_at] => 2025-12-23 18:15:20
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766510124
)

[23-Dec-2025 18:22:37 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 18:22:37 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766510124
    [last_regeneration] => 1766510124
    [session_started_at] => 2025-12-23 18:15:20
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766510124
)

[23-Dec-2025 18:22:38 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 21, is_enrolled: YES
[23-Dec-2025 18:22:38 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[23-Dec-2025 18:22:39 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 48
[23-Dec-2025 18:22:39 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [48,49,50,52,53,54,56]
[23-Dec-2025 18:22:39 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 7, Completed: 0, Percentage: 0%
[23-Dec-2025 18:22:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 18:22:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 18:22:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 18:22:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[23-Dec-2025 18:22:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 18:22:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 18:22:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 18:22:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 18:22:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 18:22:40 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 18:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 18:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 18:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[23-Dec-2025 18:22:41 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1435
[23-Dec-2025 18:22:41 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Dec-2025 18:22:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 18:22:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 18:22:41 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[23-Dec-2025 18:22:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 18:22:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[23-Dec-2025 18:22:41 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 18:22:41 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[23-Dec-2025 18:31:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 18:31:45 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 18:31:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766510124
    [last_regeneration] => 1766510124
    [session_started_at] => 2025-12-23 18:15:20
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766510124
)

[23-Dec-2025 18:31:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 18:31:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766510124
    [last_regeneration] => 1766510124
    [session_started_at] => 2025-12-23 18:15:20
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766510124
)

[23-Dec-2025 18:31:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Dec-2025 18:31:51 Europe/Berlin] isLoggedIn check result: true
[23-Dec-2025 18:31:51 Europe/Berlin] Session data: Array
(
    [created_at] => 1766510124
    [last_regeneration] => 1766510124
    [session_started_at] => 2025-12-23 18:15:20
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766510124
)

[23-Dec-2025 18:31:51 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[23-Dec-2025 18:31:51 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766510124
    [last_regeneration] => 1766510124
    [session_started_at] => 2025-12-23 18:15:20
    [login_redirect_count] => 1
    [last_page] => /teacher/notifications.php
    [stored_redirect] => /teacher/notifications.php
    [redirect_to_cart] => 
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766510124
)

[23-Dec-2025 18:31:54 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 130
[23-Dec-2025 18:32:07 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:32:07 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:32:07 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:32:07 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:32:18 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:32:18 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:32:18 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:32:18 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:32:19 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:32:19 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:32:19 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:32:19 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:33:06 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:33:06 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:33:06 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:33:06 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:33:15 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:33:15 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:33:15 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:33:15 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:33:18 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:33:18 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:33:19 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:33:19 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:33:19 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:33:19 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:33:19 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:33:19 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:33:20 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:33:20 Europe/Berlin] Certificate Generation Error: Student not found
[23-Dec-2025 18:33:20 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[23-Dec-2025 18:33:20 Europe/Berlin] Certificate Generation Error: Student not found
[24-Dec-2025 02:37:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 02:37:29 Europe/Berlin] isLoggedIn check result: false
[24-Dec-2025 02:37:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-24 02:37:29
)

[24-Dec-2025 02:37:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 02:37:44 Europe/Berlin] isLoggedIn check result: false
[24-Dec-2025 02:37:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-24 02:37:44
)

[24-Dec-2025 02:46:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 02:46:04 Europe/Berlin] isLoggedIn check result: false
[24-Dec-2025 02:46:04 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-24 02:46:04
)

[24-Dec-2025 06:51:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:51:53 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:51:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
)

[24-Dec-2025 06:51:53 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:51:53 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
)

[24-Dec-2025 06:51:53 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:51:53 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:51:53 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

)

[24-Dec-2025 06:51:53 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:51:53 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

)

[24-Dec-2025 06:51:53 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 0
[24-Dec-2025 06:52:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:52:04 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:52:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

)

[24-Dec-2025 06:52:04 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:52:04 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

)

[24-Dec-2025 06:52:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:52:19 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:52:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

)

[24-Dec-2025 06:52:19 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:52:19 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

)

[24-Dec-2025 06:52:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:52:23 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:52:23 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

)

[24-Dec-2025 06:52:23 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:52:23 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

)

[24-Dec-2025 06:52:26 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:52:26 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:52:26 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

)

[24-Dec-2025 06:52:26 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:52:26 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

)

[24-Dec-2025 06:52:28 Europe/Berlin] CART CLEARING: Cleared session cart during checkout process for user 45
[24-Dec-2025 06:53:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:53:09 Europe/Berlin] Payment Return Auth Debug - User ID: 45
[24-Dec-2025 06:53:09 Europe/Berlin] Payment Return Auth Debug - Role: NOT SET
[24-Dec-2025 06:53:09 Europe/Berlin] Payment Return Auth Debug - Is Logged In: YES
[24-Dec-2025 06:53:09 Europe/Berlin] PayFast Return Parameters: Array
(
    [type] => cart
)

[24-Dec-2025 06:53:09 Europe/Berlin] Payment Return: Cart payment detected - clearing session cart immediately
[24-Dec-2025 06:53:09 Europe/Berlin] Payment Return Debug - Session Data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [applied_referral_discount] => Array
        (
            [discount_id] => 15
            [amount] => 60
        )

    [payment_amount] => 1140
    [payment_course_titles] => Array
        (
            [0] => Computer Literacy
        )

    [payment_course_ids] => Array
        (
            [0] => 19
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [teacher_first_name] => Cephas
                    [teacher_last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

)

[24-Dec-2025 06:53:09 Europe/Berlin] Payment Return Debug - GET params: Array
(
    [type] => cart
)

[24-Dec-2025 06:53:09 Europe/Berlin] Payment Return Debug - Is Cart Payment: YES
[24-Dec-2025 06:53:09 Europe/Berlin] Revenue sharing processed for enrollment 83, purchase 80
[24-Dec-2025 06:53:09 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Computer Literacy" - Access Now Available! - failed
[24-Dec-2025 06:53:10 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Computer Literacy" - Access Now Available! - sent
[24-Dec-2025 06:53:10 Europe/Berlin] Email logged successfully: swususan0@gmail.com - 🎉 Purchase Confirmed: "Computer Literacy" - Access Now Available! - sent
[24-Dec-2025 06:53:10 Europe/Berlin] Purchase confirmation email sent: SUCCESS for course 19 to user 45
[24-Dec-2025 06:53:10 Europe/Berlin] Email logged successfully: maphosacephas58@gmail.com - 🎉 Course Sale: "Computer Literacy" - New Student Enrolled! - failed
[24-Dec-2025 06:53:11 Europe/Berlin] Email logged successfully: maphosacephas58@gmail.com - 🎉 Course Sale: "Computer Literacy" - New Student Enrolled! - sent
[24-Dec-2025 06:53:11 Europe/Berlin] Email logged successfully: maphosacephas58@gmail.com - 🎉 Course Sale: "Computer Literacy" - New Student Enrolled! - sent
[24-Dec-2025 06:53:11 Europe/Berlin] Teacher sale notification email sent: SUCCESS for course 19 to teacher
[24-Dec-2025 06:53:11 Europe/Berlin] Payment record SQL error: 
[24-Dec-2025 06:53:11 Europe/Berlin] TEACHER COMMISSION SUCCESS: Inserted R57 commission for teacher 44 from referral 36
[24-Dec-2025 06:53:11 Europe/Berlin] Cart referral rewards processed - 1 rewards given
[24-Dec-2025 06:53:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:53:22 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:53:22 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
)

[24-Dec-2025 06:53:22 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:53:22 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
)

[24-Dec-2025 06:53:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:53:27 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:53:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
)

[24-Dec-2025 06:53:27 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:53:27 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
)

[24-Dec-2025 06:53:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:53:38 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:53:38 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
)

[24-Dec-2025 06:53:38 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:53:38 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
)

[24-Dec-2025 06:53:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:53:41 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:53:41 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:53:41 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:53:41 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:53:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:53:42 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:53:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:53:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:53:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:53:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:53:54 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:53:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:53:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:53:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:53:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:53:58 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:53:58 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:53:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:53:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:53:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 19, is_enrolled: YES
[24-Dec-2025 06:53:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[24-Dec-2025 06:53:58 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[24-Dec-2025 06:53:58 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[24-Dec-2025 06:53:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[24-Dec-2025 06:53:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[24-Dec-2025 06:53:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[24-Dec-2025 06:53:58 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[24-Dec-2025 06:53:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[24-Dec-2025 06:53:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[24-Dec-2025 06:53:58 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[24-Dec-2025 06:53:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[24-Dec-2025 06:53:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[24-Dec-2025 06:53:58 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[24-Dec-2025 06:53:58 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[24-Dec-2025 06:54:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:54:03 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:54:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:54:03 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:54:03 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:54:03 Europe/Berlin] ✅ COURSE ID: Received course_id: 19...
[24-Dec-2025 06:54:03 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 19
[24-Dec-2025 06:54:03 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 45
[24-Dec-2025 06:54:03 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 45
[24-Dec-2025 06:54:03 Europe/Berlin] 🎯 FINAL IDs: course_id=19, lesson_id=45
[24-Dec-2025 06:54:03 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[24-Dec-2025 06:54:03 Europe/Berlin] 🔍 DATABASE: Connection error: 
[24-Dec-2025 06:54:03 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[24-Dec-2025 06:54:03 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 19, lesson_id: 45
[24-Dec-2025 06:54:03 Europe/Berlin] ✅ QUERY: Successfully prepared
[24-Dec-2025 06:54:03 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[24-Dec-2025 06:54:03 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[24-Dec-2025 06:54:03 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[24-Dec-2025 06:54:03 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[24-Dec-2025 06:54:03 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[24-Dec-2025 06:54:03 Europe/Berlin] ❌ BACKEND: No video URL or path found
[24-Dec-2025 06:54:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:54:59 Europe/Berlin] DEBUG - Session data: {"created_at":1766555512,"last_regeneration":1766555512,"user_id":45,"username":"kanicl","email":"swususan0@gmail.com","first_name":"Brian","last_name":"Kan","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1766555512,"session_started_at":"2025-12-24 06:51:53","cart":[],"payment_discount_percent":0,"payment_promo_code":null,"enrolled_courses":[{"course_id":19,"title":"Computer Literacy","price":"1200.00","thumbnail":"..\/uploads\/thumbnails\/course_1766132376_69450a98f4219.PNG","description":"What Computer Literacy Includes\r\n\r\nBasic Computer Skills\r\n\r\nTurning a computer on\/off\r\n\r\nUsing keyboard, mouse, and touchpad\r\n\r\nManaging files and folders\r\n\r\nOperating Systems\r\n\r\nNavigating Windows\/macOS\/Linux\r\n\r\nInstalling and updating software\r\n\r\nBasic troubleshooting\r\n\r\nOffice & Productivity Tools\r\n\r\nWord processing (e.g., MS Word)\r\n\r\nSpreadsheets (e.g., Excel)\r\n\r\nPresentations (e.g., PowerPoint)\r\n\r\nInternet & Email Use\r\n\r\nWeb browsing and search skills\r\n\r\nCreating and managing email\r\n\r\nOnline communication etiquette\r\n\r\nDigital Safety & Ethics\r\n\r\nPassword security\r\n\r\nIdentifying scams and fake news\r\n\r\nResponsible online behavior\r\n\r\nBasic Hardware Knowledge\r\n\r\nUnderstanding parts (CPU, RAM, storage)\r\n\r\nConnecting peripherals (printer, scanner)\r\n\r\nIntro to Online Services\r\n\r\nCloud storage\r\n\r\nVideo conferencing\r\n\r\nOnline forms and portals","first_name":"Cephas","last_name":"Maphosa","category_name":"Data Science"}],"failed_courses":[],"cart_payment_total":1140,"user_first_name":"Brian","user_last_name":"Kan"}
[24-Dec-2025 06:54:59 Europe/Berlin] DEBUG - POST data: {"video_id":"45","user_id":"1","completion_percentage":"100.00","completed_at":"2025-12-24 05:55:08"}
[24-Dec-2025 06:55:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:55:17 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:55:17 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:17 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:55:17 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:55:27 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:55:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:27 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:55:27 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:55:27 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:55:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:27 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:55:27 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:33 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:55:33 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:55:33 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:33 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:55:33 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:55:36 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:55:36 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:36 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:55:36 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:36 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 19, is_enrolled: YES
[24-Dec-2025 06:55:36 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[24-Dec-2025 06:55:36 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[24-Dec-2025 06:55:36 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[24-Dec-2025 06:55:36 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[24-Dec-2025 06:55:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[24-Dec-2025 06:55:37 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[24-Dec-2025 06:55:37 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[24-Dec-2025 06:55:42 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[24-Dec-2025 06:55:42 Europe/Berlin] Certificate Generation Error: Student not found
[24-Dec-2025 06:55:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 06:55:44 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 06:55:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 06:55:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 06:55:44 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 19, is_enrolled: YES
[24-Dec-2025 06:55:44 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[24-Dec-2025 06:55:44 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[24-Dec-2025 06:55:44 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[24-Dec-2025 06:55:44 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[24-Dec-2025 06:55:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[24-Dec-2025 06:55:44 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[24-Dec-2025 06:55:44 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[24-Dec-2025 06:55:49 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[24-Dec-2025 06:55:49 Europe/Berlin] Certificate Generation Error: Student not found
[24-Dec-2025 07:03:16 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[24-Dec-2025 07:03:16 Europe/Berlin] Certificate Generation Error: Student not found
[24-Dec-2025 07:03:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 07:03:28 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 07:03:28 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 07:03:28 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 07:03:28 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 07:03:29 Europe/Berlin] Dashboard hours debug: User 45 has total hours: 64
[24-Dec-2025 07:03:34 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[24-Dec-2025 07:03:34 Europe/Berlin] Certificate Generation Error: Student not found
[24-Dec-2025 07:03:46 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[24-Dec-2025 07:03:46 Europe/Berlin] Certificate Generation Error: Student not found
[24-Dec-2025 07:03:47 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[24-Dec-2025 07:03:47 Europe/Berlin] Certificate Generation Error: Student not found
[24-Dec-2025 07:08:19 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[24-Dec-2025 07:08:19 Europe/Berlin] Certificate Generation Error: Student not found
[24-Dec-2025 07:09:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 07:09:24 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 07:09:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 07:09:24 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 07:09:24 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 07:09:24 Europe/Berlin] ACCREDITATION DEBUG - user_id: 45, course_id: 19, is_enrolled: YES
[24-Dec-2025 07:09:24 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[24-Dec-2025 07:09:24 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 45
[24-Dec-2025 07:09:24 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [45]
[24-Dec-2025 07:09:24 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[24-Dec-2025 07:09:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[24-Dec-2025 07:09:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[24-Dec-2025 07:09:24 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[24-Dec-2025 07:09:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 07:09:40 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 07:09:40 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 07:09:40 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 07:09:40 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 07:09:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 07:09:46 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 07:09:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 07:09:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[24-Dec-2025 07:09:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766555512
    [last_regeneration] => 1766555512
    [user_id] => 45
    [username] => kanicl
    [email] => swususan0@gmail.com
    [first_name] => Brian
    [last_name] => Kan
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766555512
    [session_started_at] => 2025-12-24 06:51:53
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 19
                    [title] => Computer Literacy
                    [price] => 1200.00
                    [thumbnail] => ../uploads/thumbnails/course_1766132376_69450a98f4219.PNG
                    [description] => What Computer Literacy Includes

Basic Computer Skills

Turning a computer on/off

Using keyboard, mouse, and touchpad

Managing files and folders

Operating Systems

Navigating Windows/macOS/Linux

Installing and updating software

Basic troubleshooting

Office & Productivity Tools

Word processing (e.g., MS Word)

Spreadsheets (e.g., Excel)

Presentations (e.g., PowerPoint)

Internet & Email Use

Web browsing and search skills

Creating and managing email

Online communication etiquette

Digital Safety & Ethics

Password security

Identifying scams and fake news

Responsible online behavior

Basic Hardware Knowledge

Understanding parts (CPU, RAM, storage)

Connecting peripherals (printer, scanner)

Intro to Online Services

Cloud storage

Video conferencing

Online forms and portals
                    [first_name] => Cephas
                    [last_name] => Maphosa
                    [category_name] => Data Science
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 1140
    [user_first_name] => Brian
    [user_last_name] => Kan
)

[24-Dec-2025 09:47:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 09:47:45 Europe/Berlin] isLoggedIn check result: true
[24-Dec-2025 09:47:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1766562336
    [last_regeneration] => 1766562336
    [user_id] => 1
    [username] => admin
    [email] => panadite@academy.com
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766562336
    [session_started_at] => 2025-12-24 08:45:37
)

[24-Dec-2025 09:47:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: admin
[24-Dec-2025 09:47:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1766562336
    [last_regeneration] => 1766562336
    [user_id] => 1
    [username] => admin
    [email] => panadite@academy.com
    [first_name] => Admin
    [last_name] => User
    [user_role] => admin
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1766562336
    [session_started_at] => 2025-12-24 08:45:37
)

[24-Dec-2025 10:45:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 10:45:06 Europe/Berlin] isLoggedIn check result: false
[24-Dec-2025 10:45:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1766567678
    [last_regeneration] => 1766569493
    [session_started_at] => 2025-12-24 09:14:59
    [stored_redirect] => /admin/dashboard.php
    [redirect_to_cart] => 
)

[24-Dec-2025 14:22:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 14:22:34 Europe/Berlin] isLoggedIn check result: false
[24-Dec-2025 14:22:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-24 14:22:34
)

[24-Dec-2025 21:06:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[24-Dec-2025 21:06:04 Europe/Berlin] isLoggedIn check result: false
[24-Dec-2025 21:06:04 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-24 21:06:04
)

[25-Dec-2025 00:31:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[25-Dec-2025 00:31:01 Europe/Berlin] isLoggedIn check result: false
[25-Dec-2025 00:31:01 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-25 00:31:01
)

[25-Dec-2025 05:20:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[25-Dec-2025 05:20:00 Europe/Berlin] isLoggedIn check result: false
[25-Dec-2025 05:20:00 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-25 05:20:00
)

[25-Dec-2025 21:16:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[25-Dec-2025 21:16:09 Europe/Berlin] isLoggedIn check result: false
[25-Dec-2025 21:16:09 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-25 21:16:08
)

[26-Dec-2025 01:44:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[26-Dec-2025 01:44:08 Europe/Berlin] isLoggedIn check result: false
[26-Dec-2025 01:44:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-26 01:44:08
)

[26-Dec-2025 20:31:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[26-Dec-2025 20:31:13 Europe/Berlin] isLoggedIn check result: false
[26-Dec-2025 20:31:13 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-26 20:31:13
)

[28-Dec-2025 11:49:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[28-Dec-2025 11:49:20 Europe/Berlin] isLoggedIn check result: false
[28-Dec-2025 11:49:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-28 11:49:20
)

[29-Dec-2025 13:38:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[29-Dec-2025 13:38:48 Europe/Berlin] isLoggedIn check result: false
[29-Dec-2025 13:38:48 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-29 13:38:48
)

[31-Dec-2025 10:57:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[31-Dec-2025 10:57:40 Europe/Berlin] isLoggedIn check result: false
[31-Dec-2025 10:57:40 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-31 10:57:40
)

[31-Dec-2025 14:10:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[31-Dec-2025 14:10:30 Europe/Berlin] isLoggedIn check result: false
[31-Dec-2025 14:10:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-31 14:10:30
)

[31-Dec-2025 14:11:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[31-Dec-2025 14:11:37 Europe/Berlin] isLoggedIn check result: false
[31-Dec-2025 14:11:37 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2025-12-31 14:11:37
)

[02-Jan-2026 15:43:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[02-Jan-2026 15:43:15 Europe/Berlin] isLoggedIn check result: false
[02-Jan-2026 15:43:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-02 15:43:15
)

[03-Jan-2026 00:36:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[03-Jan-2026 00:36:16 Europe/Berlin] isLoggedIn check result: false
[03-Jan-2026 00:36:16 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-03 00:36:16
)

[03-Jan-2026 07:09:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[03-Jan-2026 07:09:27 Europe/Berlin] isLoggedIn check result: false
[03-Jan-2026 07:09:27 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-03 07:09:27
)

[03-Jan-2026 13:02:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[03-Jan-2026 13:02:07 Europe/Berlin] isLoggedIn check result: false
[03-Jan-2026 13:02:07 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-03 13:02:07
)

[03-Jan-2026 20:16:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[03-Jan-2026 20:16:13 Europe/Berlin] isLoggedIn check result: false
[03-Jan-2026 20:16:13 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-03 20:16:13
)

[03-Jan-2026 20:54:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[03-Jan-2026 20:54:13 Europe/Berlin] isLoggedIn check result: false
[03-Jan-2026 20:54:13 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-03 20:54:13
)

[04-Jan-2026 06:41:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[04-Jan-2026 06:41:35 Europe/Berlin] isLoggedIn check result: false
[04-Jan-2026 06:41:35 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-04 06:41:35
)

[04-Jan-2026 15:12:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[04-Jan-2026 15:12:11 Europe/Berlin] isLoggedIn check result: false
[04-Jan-2026 15:12:11 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-04 15:12:11
)

[04-Jan-2026 21:17:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[04-Jan-2026 21:17:49 Europe/Berlin] isLoggedIn check result: false
[04-Jan-2026 21:17:49 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-04 21:17:49
)

[05-Jan-2026 11:33:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Jan-2026 11:33:40 Europe/Berlin] isLoggedIn check result: false
[05-Jan-2026 11:33:40 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-05 11:33:40
)

[05-Jan-2026 22:50:41 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Jan-2026 22:50:41 Europe/Berlin] isLoggedIn check result: false
[05-Jan-2026 22:50:41 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-05 22:50:41
)

[07-Jan-2026 05:06:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[07-Jan-2026 05:06:48 Europe/Berlin] isLoggedIn check result: false
[07-Jan-2026 05:06:48 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-07 05:06:48
)

[08-Jan-2026 18:32:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[08-Jan-2026 18:32:22 Europe/Berlin] isLoggedIn check result: true
[08-Jan-2026 18:32:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-08 17:18:38
    [created_at] => 1767893540
    [last_regeneration] => 1767893540
    [stored_redirect] => /student/checkout.php?from_guest_cart=1
    [redirect_to_cart] => 
    [user_id] => 5
    [username] => JoyChikomo
    [email] => mercypraise09@gmail.com
    [first_name] => Joy
    [last_name] => Chikomo
    [user_role] => teacher
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1767893540
)

[08-Jan-2026 18:32:22 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: teacher
[08-Jan-2026 18:32:22 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-08 17:18:38
    [created_at] => 1767893540
    [last_regeneration] => 1767893540
    [stored_redirect] => /student/checkout.php?from_guest_cart=1
    [redirect_to_cart] => 
    [user_id] => 5
    [username] => JoyChikomo
    [email] => mercypraise09@gmail.com
    [first_name] => Joy
    [last_name] => Chikomo
    [user_role] => teacher
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1767893540
)

[09-Jan-2026 01:21:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[09-Jan-2026 01:21:36 Europe/Berlin] isLoggedIn check result: false
[09-Jan-2026 01:21:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-09 01:21:36
)

[09-Jan-2026 23:46:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[09-Jan-2026 23:46:05 Europe/Berlin] isLoggedIn check result: false
[09-Jan-2026 23:46:05 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-09 23:46:05
)

[09-Jan-2026 23:46:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[09-Jan-2026 23:46:06 Europe/Berlin] isLoggedIn check result: false
[09-Jan-2026 23:46:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-09 23:46:06
)

[09-Jan-2026 23:46:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[09-Jan-2026 23:46:06 Europe/Berlin] isLoggedIn check result: false
[09-Jan-2026 23:46:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-09 23:46:06
)

[09-Jan-2026 23:46:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[09-Jan-2026 23:46:06 Europe/Berlin] isLoggedIn check result: false
[09-Jan-2026 23:46:06 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-09 23:46:06
)

[10-Jan-2026 04:11:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[10-Jan-2026 04:11:29 Europe/Berlin] isLoggedIn check result: false
[10-Jan-2026 04:11:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-10 04:11:29
)

[10-Jan-2026 04:11:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[10-Jan-2026 04:11:29 Europe/Berlin] isLoggedIn check result: false
[10-Jan-2026 04:11:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-10 04:11:29
)

[10-Jan-2026 04:11:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[10-Jan-2026 04:11:32 Europe/Berlin] isLoggedIn check result: false
[10-Jan-2026 04:11:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-10 04:11:32
)

[10-Jan-2026 04:11:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[10-Jan-2026 04:11:32 Europe/Berlin] isLoggedIn check result: false
[10-Jan-2026 04:11:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-10 04:11:32
)

[10-Jan-2026 05:14:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[10-Jan-2026 05:14:45 Europe/Berlin] isLoggedIn check result: false
[10-Jan-2026 05:14:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-10 05:14:45
)

[10-Jan-2026 05:14:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[10-Jan-2026 05:14:46 Europe/Berlin] isLoggedIn check result: false
[10-Jan-2026 05:14:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-10 05:14:46
)

[10-Jan-2026 05:14:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[10-Jan-2026 05:14:49 Europe/Berlin] isLoggedIn check result: false
[10-Jan-2026 05:14:49 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-10 05:14:49
)

[10-Jan-2026 05:14:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[10-Jan-2026 05:14:49 Europe/Berlin] isLoggedIn check result: false
[10-Jan-2026 05:14:49 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-10 05:14:49
)

[10-Jan-2026 07:03:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[10-Jan-2026 07:03:24 Europe/Berlin] isLoggedIn check result: false
[10-Jan-2026 07:03:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-10 07:03:24
)

[15-Jan-2026 14:06:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[15-Jan-2026 14:06:57 Europe/Berlin] isLoggedIn check result: false
[15-Jan-2026 14:06:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-15 14:06:57
)

[15-Jan-2026 14:29:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[15-Jan-2026 14:29:19 Europe/Berlin] isLoggedIn check result: false
[15-Jan-2026 14:29:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-15 14:29:19
)

[15-Jan-2026 19:07:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[15-Jan-2026 19:07:54 Europe/Berlin] isLoggedIn check result: false
[15-Jan-2026 19:07:54 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-15 19:07:54
)

[16-Jan-2026 00:41:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[16-Jan-2026 00:41:44 Europe/Berlin] isLoggedIn check result: false
[16-Jan-2026 00:41:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-16 00:41:44
)

[16-Jan-2026 10:05:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[16-Jan-2026 10:05:32 Europe/Berlin] isLoggedIn check result: false
[16-Jan-2026 10:05:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-16 10:05:23
    [created_at] => 1768554326
    [last_regeneration] => 1768554326
)

[16-Jan-2026 23:10:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[16-Jan-2026 23:10:32 Europe/Berlin] isLoggedIn check result: false
[16-Jan-2026 23:10:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-16 23:10:32
)

[18-Jan-2026 21:16:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:16:30 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:16:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
)

[18-Jan-2026 21:16:30 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:16:30 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
)

[18-Jan-2026 21:16:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:16:30 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:16:30 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

)

[18-Jan-2026 21:16:30 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:16:30 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

)

[18-Jan-2026 21:16:30 Europe/Berlin] Dashboard hours debug: User 56 has total hours: 0
[18-Jan-2026 21:16:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:16:39 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:16:39 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

)

[18-Jan-2026 21:16:39 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:16:39 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

)

[18-Jan-2026 21:16:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:16:44 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:16:44 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:16:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:16:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:17:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:17:00 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:17:00 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:17:00 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:17:00 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:17:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:17:21 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:17:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:17:21 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:17:21 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:17:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:17:42 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:17:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:17:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:17:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:17:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:17:50 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:17:50 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:17:50 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:17:50 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:17:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:17:57 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:17:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:17:57 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:17:57 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:18:08 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:18:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:08 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:18:08 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:18:11 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:18:11 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:11 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:18:11 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:18:12 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:18:12 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:12 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:18:12 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:18:13 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:18:13 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:13 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:18:13 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:13 Europe/Berlin] Dashboard hours debug: User 56 has total hours: 0
[18-Jan-2026 21:18:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:18:15 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:18:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:18:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:15 Europe/Berlin] Dashboard hours debug: User 56 has total hours: 0
[18-Jan-2026 21:18:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:18:16 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:18:16 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:16 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:18:16 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:16 Europe/Berlin] Dashboard hours debug: User 56 has total hours: 0
[18-Jan-2026 21:18:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Jan-2026 21:18:17 Europe/Berlin] isLoggedIn check result: true
[18-Jan-2026 21:18:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:17 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[18-Jan-2026 21:18:17 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-18 21:13:00
    [created_at] => 1768767389
    [last_regeneration] => 1768767389
    [user_id] => 56
    [username] => Hshsh
    [email] => moontontlol321@gmail.com
    [first_name] => Hshs
    [last_name] => Hshs
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768767389
    [cart] => Array
        (
        )

    [user_first_name] => Hshs
    [user_last_name] => Hshs
)

[18-Jan-2026 21:18:17 Europe/Berlin] Dashboard hours debug: User 56 has total hours: 0
[19-Jan-2026 08:08:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Jan-2026 08:08:34 Europe/Berlin] isLoggedIn check result: false
[19-Jan-2026 08:08:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-19 08:08:34
)

[20-Jan-2026 02:51:49 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 02:51:49 Europe/Berlin] isLoggedIn check result: false
[20-Jan-2026 02:51:49 Europe/Berlin] Session data: Array
(
    [created_at] => 1768873884
    [last_regeneration] => 1768873884
    [stored_redirect] => ../student/library.php
    [redirect_to_cart] => 
    [session_started_at] => 2026-01-20 02:51:33
)

[20-Jan-2026 15:07:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:07:57 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:07:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1768918077
    [last_regeneration] => 1768918077
    [session_started_at] => 2026-01-20 15:02:33
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768918077
)

[20-Jan-2026 15:07:57 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:07:57 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768918077
    [last_regeneration] => 1768918077
    [session_started_at] => 2026-01-20 15:02:33
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768918077
)

[20-Jan-2026 15:07:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:07:57 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:07:57 Europe/Berlin] Session data: Array
(
    [created_at] => 1768918077
    [last_regeneration] => 1768918077
    [session_started_at] => 2026-01-20 15:02:33
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768918077
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:07:57 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:07:57 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768918077
    [last_regeneration] => 1768918077
    [session_started_at] => 2026-01-20 15:02:33
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768918077
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:07:57 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 0
[20-Jan-2026 15:08:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:08:11 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:08:11 Europe/Berlin] Session data: Array
(
    [created_at] => 1768918077
    [last_regeneration] => 1768918077
    [session_started_at] => 2026-01-20 15:02:33
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768918077
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:08:11 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:08:11 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768918077
    [last_regeneration] => 1768918077
    [session_started_at] => 2026-01-20 15:02:33
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768918077
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:08:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:08:15 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:08:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1768918077
    [last_regeneration] => 1768918077
    [session_started_at] => 2026-01-20 15:02:33
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768918077
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:08:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:08:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768918077
    [last_regeneration] => 1768918077
    [session_started_at] => 2026-01-20 15:02:33
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768918077
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:33:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:33:01 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:33:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1768919580
    [last_regeneration] => 1768919580
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919580
    [session_started_at] => 2026-01-20 15:33:01
)

[20-Jan-2026 15:33:01 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:33:01 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768919580
    [last_regeneration] => 1768919580
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919580
    [session_started_at] => 2026-01-20 15:33:01
)

[20-Jan-2026 15:33:01 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:33:01 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:33:01 Europe/Berlin] Session data: Array
(
    [created_at] => 1768919580
    [last_regeneration] => 1768919580
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919580
    [session_started_at] => 2026-01-20 15:33:01
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:33:01 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:33:01 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768919580
    [last_regeneration] => 1768919580
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919580
    [session_started_at] => 2026-01-20 15:33:01
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:33:01 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 0
[20-Jan-2026 15:33:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:33:04 Europe/Berlin] isLoggedIn check result: false
[20-Jan-2026 15:33:04 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
)

[20-Jan-2026 15:33:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:33:16 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:33:16 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
)

[20-Jan-2026 15:33:16 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:33:16 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
)

[20-Jan-2026 15:33:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:33:35 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:33:35 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
)

[20-Jan-2026 15:33:35 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:33:35 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
)

[20-Jan-2026 15:33:40 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:33:40 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:33:40 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:33:40 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:33:40 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:33:43 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:33:43 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:33:43 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:33:43 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:33:43 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

)

[20-Jan-2026 15:33:43 Europe/Berlin] CART CLEARING: Cleared session cart during checkout process for user 57
[20-Jan-2026 15:34:31 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:34:31 Europe/Berlin] Payment Return Auth Debug - User ID: 57
[20-Jan-2026 15:34:31 Europe/Berlin] Payment Return Auth Debug - Role: NOT SET
[20-Jan-2026 15:34:31 Europe/Berlin] Payment Return Auth Debug - Is Logged In: YES
[20-Jan-2026 15:34:31 Europe/Berlin] PayFast Return Parameters: Array
(
    [type] => cart
)

[20-Jan-2026 15:34:31 Europe/Berlin] Payment Return: Cart payment detected - clearing session cart immediately
[20-Jan-2026 15:34:31 Europe/Berlin] Payment Return Debug - Session Data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_amount] => 5000
    [payment_course_titles] => Array
        (
            [0] => Computer science
        )

    [payment_course_ids] => Array
        (
            [0] => 22
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [cart_payment_data] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [description] => welcome
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [teacher_first_name] => Delpher
                    [teacher_last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

)

[20-Jan-2026 15:34:31 Europe/Berlin] Payment Return Debug - GET params: Array
(
    [type] => cart
)

[20-Jan-2026 15:34:31 Europe/Berlin] Payment Return Debug - Is Cart Payment: YES
[20-Jan-2026 15:34:31 Europe/Berlin] Revenue sharing processed for enrollment 84, purchase 1
[20-Jan-2026 15:34:31 Europe/Berlin] Email logged successfully: futuristicpath357@gmail.com - 🎉 Purchase Confirmed: "Computer science" - Access Now Available! - failed
[20-Jan-2026 15:34:31 Europe/Berlin] Email logged successfully: futuristicpath357@gmail.com - 🎉 Purchase Confirmed: "Computer science" - Access Now Available! - sent
[20-Jan-2026 15:34:31 Europe/Berlin] Email logged successfully: futuristicpath357@gmail.com - 🎉 Purchase Confirmed: "Computer science" - Access Now Available! - sent
[20-Jan-2026 15:34:31 Europe/Berlin] Purchase confirmation email sent: SUCCESS for course 22 to user 57
[20-Jan-2026 15:34:31 Europe/Berlin] Email logged successfully: alainkitumaini8@gmail.com - 🎉 Course Sale: "Computer science" - New Student Enrolled! - failed
[20-Jan-2026 15:34:31 Europe/Berlin] Email logged successfully: alainkitumaini8@gmail.com - 🎉 Course Sale: "Computer science" - New Student Enrolled! - sent
[20-Jan-2026 15:34:31 Europe/Berlin] Email logged successfully: alainkitumaini8@gmail.com - 🎉 Course Sale: "Computer science" - New Student Enrolled! - sent
[20-Jan-2026 15:34:31 Europe/Berlin] Teacher sale notification email sent: SUCCESS for course 22 to teacher
[20-Jan-2026 15:34:31 Europe/Berlin] Payment record SQL error: 
[20-Jan-2026 15:34:31 Europe/Berlin] Cart referral rewards processed - 1 rewards given
[20-Jan-2026 15:34:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:34:51 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:34:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:34:51 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:34:51 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:34:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:34:58 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:34:58 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:34:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:34:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:35:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:35:04 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:35:04 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:35:04 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:35:04 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:35:04 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[20-Jan-2026 15:35:04 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[20-Jan-2026 15:35:04 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[20-Jan-2026 15:35:04 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[20-Jan-2026 15:35:04 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[20-Jan-2026 15:35:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[20-Jan-2026 15:35:04 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[20-Jan-2026 15:35:04 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[20-Jan-2026 15:35:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[20-Jan-2026 15:35:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[20-Jan-2026 15:35:04 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[20-Jan-2026 15:35:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[20-Jan-2026 15:35:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[20-Jan-2026 15:35:04 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[20-Jan-2026 15:35:04 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[20-Jan-2026 15:35:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:35:34 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:35:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:35:34 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:35:34 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:35:34 Europe/Berlin] ✅ COURSE ID: Received course_id: 22...
[20-Jan-2026 15:35:34 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 22
[20-Jan-2026 15:35:34 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 57
[20-Jan-2026 15:35:34 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 57
[20-Jan-2026 15:35:34 Europe/Berlin] 🎯 FINAL IDs: course_id=22, lesson_id=57
[20-Jan-2026 15:35:34 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[20-Jan-2026 15:35:34 Europe/Berlin] 🔍 DATABASE: Connection error: 
[20-Jan-2026 15:35:34 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[20-Jan-2026 15:35:34 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 22, lesson_id: 57
[20-Jan-2026 15:35:34 Europe/Berlin] ✅ QUERY: Successfully prepared
[20-Jan-2026 15:35:34 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[20-Jan-2026 15:35:34 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[20-Jan-2026 15:35:34 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[20-Jan-2026 15:35:34 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[20-Jan-2026 15:35:34 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[20-Jan-2026 15:35:34 Europe/Berlin] ❌ BACKEND: No video URL or path found
[20-Jan-2026 15:36:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:36:44 Europe/Berlin] DEBUG - Session data: {"session_started_at":"2026-01-20 15:33:04","created_at":1768919595,"last_regeneration":1768919595,"stored_redirect":"\/student\/course-catalog.php","redirect_to_cart":false,"user_id":57,"username":"jokinishgs","email":"futuristicpath357@gmail.com","first_name":"Alain","last_name":"Kitumaini","user_role":"student","logged_in":true,"is_logged_in":true,"login_time":1768919595,"cart":[],"payment_discount_percent":0,"payment_promo_code":null,"enrolled_courses":[{"course_id":22,"title":"Computer science","price":"5000.00","thumbnail":"..\/uploads\/thumbnails\/course_1768919143_696f906799f9d.jpg","description":"welcome","first_name":"Delpher","last_name":"Hope","category_name":"Learning and Development"}],"failed_courses":[],"cart_payment_total":5000}
[20-Jan-2026 15:36:44 Europe/Berlin] DEBUG - POST data: {"video_id":"57","user_id":"1","completion_percentage":"100.00","completed_at":"2026-01-20 14:36:44"}
[20-Jan-2026 15:37:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:37:02 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:37:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:37:02 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:37:02 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:37:02 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[20-Jan-2026 15:37:02 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[20-Jan-2026 15:37:02 Europe/Berlin] LESSON ID DEBUG: Using plain numeric ID: 57
[20-Jan-2026 15:37:02 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[20-Jan-2026 15:37:02 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[20-Jan-2026 15:37:02 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[20-Jan-2026 15:37:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[20-Jan-2026 15:37:02 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[20-Jan-2026 15:37:02 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[20-Jan-2026 15:37:02 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[20-Jan-2026 15:37:02 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[20-Jan-2026 15:37:02 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[20-Jan-2026 15:37:02 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[20-Jan-2026 15:37:02 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[20-Jan-2026 15:37:02 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[20-Jan-2026 15:37:02 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[20-Jan-2026 15:37:35 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:37:35 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:37:35 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:37:35 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:37:35 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:37:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:37:45 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:37:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:37:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:37:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:37:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:37:45 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:37:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:37:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:37:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:37:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:37:52 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:37:52 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:37:52 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:37:52 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:38:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:38:47 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:38:47 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:38:47 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:38:47 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:38:47 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[20-Jan-2026 15:38:47 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[20-Jan-2026 15:38:47 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[20-Jan-2026 15:38:47 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[20-Jan-2026 15:38:47 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[20-Jan-2026 15:38:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[20-Jan-2026 15:38:47 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[20-Jan-2026 15:38:47 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[20-Jan-2026 15:38:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[20-Jan-2026 15:38:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[20-Jan-2026 15:38:47 Europe/Berlin] Error 2: Division by zero in /home/twpurnyc/public_html/student/course-detail.php on line 2761
[20-Jan-2026 15:38:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[20-Jan-2026 15:38:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2765
[20-Jan-2026 15:38:47 Europe/Berlin] Error 8: Undefined variable: certificate_eligibility in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[20-Jan-2026 15:38:47 Europe/Berlin] Error 8: Trying to access array offset on value of type null in /home/twpurnyc/public_html/student/course-detail.php on line 2784
[20-Jan-2026 15:39:00 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:39:00 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:39:00 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:39:00 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:39:00 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:39:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:39:15 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:39:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:39:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:39:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:39:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:39:15 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:39:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:39:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:39:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:39:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:39:21 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:39:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:39:21 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:39:21 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:39:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:39:24 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:39:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:39:24 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:39:24 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:39:24 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[20-Jan-2026 15:39:24 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[20-Jan-2026 15:39:24 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[20-Jan-2026 15:39:24 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[20-Jan-2026 15:39:24 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[20-Jan-2026 15:39:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[20-Jan-2026 15:39:24 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[20-Jan-2026 15:39:24 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[20-Jan-2026 15:39:30 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[20-Jan-2026 15:39:30 Europe/Berlin] Certificate Generation Error: Student not found
[20-Jan-2026 15:39:46 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[20-Jan-2026 15:39:46 Europe/Berlin] Certificate Generation Error: Student not found
[20-Jan-2026 15:40:06 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[20-Jan-2026 15:40:06 Europe/Berlin] Certificate Generation Error: Student not found
[20-Jan-2026 15:42:25 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[20-Jan-2026 15:42:25 Europe/Berlin] Certificate Generation Error: Student not found
[20-Jan-2026 15:42:25 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[20-Jan-2026 15:42:25 Europe/Berlin] Certificate Generation Error: Student not found
[20-Jan-2026 15:42:29 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:42:29 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:42:29 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:42:29 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:42:29 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:42:29 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[20-Jan-2026 15:42:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:42:50 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:42:50 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:42:50 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:42:50 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:42:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:42:54 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:42:54 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:42:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:42:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:42:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:42:58 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:42:58 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:42:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:42:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:43:24 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:43:24 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:24 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:43:24 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:43:28 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:43:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:28 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:43:28 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:43:34 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:43:34 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:34 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:43:34 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:34 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[20-Jan-2026 15:43:40 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[20-Jan-2026 15:43:40 Europe/Berlin] Certificate Generation Error: Student not found
[20-Jan-2026 15:43:45 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[20-Jan-2026 15:43:45 Europe/Berlin] Certificate Generation Error: Student not found
[20-Jan-2026 15:43:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:43:51 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:43:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:51 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:43:51 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:51 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[20-Jan-2026 15:43:58 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:43:58 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:43:58 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:58 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:43:58 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:43:58 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[20-Jan-2026 15:43:58 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[20-Jan-2026 15:43:58 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[20-Jan-2026 15:43:58 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[20-Jan-2026 15:43:58 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[20-Jan-2026 15:43:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[20-Jan-2026 15:43:58 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[20-Jan-2026 15:43:58 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[20-Jan-2026 15:44:03 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[20-Jan-2026 15:44:03 Europe/Berlin] Certificate Generation Error: Student not found
[20-Jan-2026 15:44:08 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[20-Jan-2026 15:44:08 Europe/Berlin] Certificate Generation Error: Student not found
[20-Jan-2026 15:46:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:46:16 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:46:16 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:46:16 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:46:16 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:46:16 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[20-Jan-2026 15:47:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:47:54 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:47:54 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:47:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:47:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:48:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:48:04 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:48:04 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:48:04 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:48:04 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:48:04 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[20-Jan-2026 15:49:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 15:49:46 Europe/Berlin] isLoggedIn check result: true
[20-Jan-2026 15:49:46 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 15:49:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Jan-2026 15:49:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-01-20 15:33:04
    [created_at] => 1768919595
    [last_regeneration] => 1768919595
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768919595
    [cart] => Array
        (
        )

    [payment_discount_percent] => 0
    [payment_promo_code] => 
    [enrolled_courses] => Array
        (
            [0] => Array
                (
                    [course_id] => 22
                    [title] => Computer science
                    [price] => 5000.00
                    [thumbnail] => ../uploads/thumbnails/course_1768919143_696f906799f9d.jpg
                    [description] => welcome
                    [first_name] => Delpher
                    [last_name] => Hope
                    [category_name] => Learning and Development
                )

        )

    [failed_courses] => Array
        (
        )

    [cart_payment_total] => 5000
)

[20-Jan-2026 16:00:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 16:00:19 Europe/Berlin] isLoggedIn check result: false
[20-Jan-2026 16:00:19 Europe/Berlin] Session data: Array
(
    [created_at] => 1768921090
    [last_regeneration] => 1768921090
    [session_started_at] => 2026-01-20 16:00:19
)

[20-Jan-2026 17:23:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Jan-2026 17:23:05 Europe/Berlin] isLoggedIn check result: false
[20-Jan-2026 17:23:05 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-20 17:23:05
)

[21-Jan-2026 07:16:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 07:16:42 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 07:16:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1768976202
    [last_regeneration] => 1768976202
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768976202
    [session_started_at] => 2026-01-21 07:16:42
)

[21-Jan-2026 07:16:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 07:16:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768976202
    [last_regeneration] => 1768976202
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768976202
    [session_started_at] => 2026-01-21 07:16:42
)

[21-Jan-2026 07:16:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 07:16:42 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 07:16:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1768976202
    [last_regeneration] => 1768976202
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768976202
    [session_started_at] => 2026-01-21 07:16:42
    [cart] => Array
        (
        )

)

[21-Jan-2026 07:16:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 07:16:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768976202
    [last_regeneration] => 1768976202
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768976202
    [session_started_at] => 2026-01-21 07:16:42
    [cart] => Array
        (
        )

)

[21-Jan-2026 07:16:42 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[21-Jan-2026 07:16:46 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 07:16:46 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 07:16:46 Europe/Berlin] Session data: Array
(
    [created_at] => 1768976202
    [last_regeneration] => 1768976202
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768976202
    [session_started_at] => 2026-01-21 07:16:42
    [cart] => Array
        (
        )

)

[21-Jan-2026 07:16:46 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 07:16:46 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768976202
    [last_regeneration] => 1768976202
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768976202
    [session_started_at] => 2026-01-21 07:16:42
    [cart] => Array
        (
        )

)

[21-Jan-2026 07:16:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 07:16:54 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 07:16:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1768976202
    [last_regeneration] => 1768976202
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768976202
    [session_started_at] => 2026-01-21 07:16:42
    [cart] => Array
        (
        )

)

[21-Jan-2026 07:16:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 07:16:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768976202
    [last_regeneration] => 1768976202
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768976202
    [session_started_at] => 2026-01-21 07:16:42
    [cart] => Array
        (
        )

)

[21-Jan-2026 07:16:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[21-Jan-2026 07:16:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[21-Jan-2026 07:16:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[21-Jan-2026 07:16:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[21-Jan-2026 07:16:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[21-Jan-2026 07:16:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[21-Jan-2026 07:16:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[21-Jan-2026 07:16:54 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[21-Jan-2026 07:16:57 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[21-Jan-2026 07:16:57 Europe/Berlin] Certificate Generation Error: Student not found
[21-Jan-2026 07:17:04 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[21-Jan-2026 07:17:04 Europe/Berlin] Certificate Generation Error: Student not found
[21-Jan-2026 07:17:12 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[21-Jan-2026 07:17:12 Europe/Berlin] Certificate Generation Error: Student not found
[21-Jan-2026 07:17:35 Europe/Berlin] Failed to prepare getStudentInfo query: Unknown column 'role' in 'where clause'
[21-Jan-2026 07:17:35 Europe/Berlin] Certificate Generation Error: Student not found
[21-Jan-2026 11:45:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:45:15 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:45:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
)

[21-Jan-2026 11:45:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:45:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
)

[21-Jan-2026 11:45:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:45:15 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:45:15 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:45:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:45:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:45:15 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[21-Jan-2026 11:45:37 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:45:37 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:45:37 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:45:37 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:45:37 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:45:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:45:55 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:45:55 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:45:55 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:45:55 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:45:55 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[21-Jan-2026 11:45:55 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[21-Jan-2026 11:45:55 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[21-Jan-2026 11:45:55 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[21-Jan-2026 11:45:55 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[21-Jan-2026 11:45:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[21-Jan-2026 11:45:55 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[21-Jan-2026 11:45:55 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[21-Jan-2026 11:46:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:46:10 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:46:10 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:10 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:46:10 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:46:32 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:46:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:32 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:46:32 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:46:32 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:46:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:32 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:46:32 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:46:45 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:46:45 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:46:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:46:50 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:46:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:50 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:46:50 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:46:54 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:46:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:46:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[21-Jan-2026 11:46:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[21-Jan-2026 11:46:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[21-Jan-2026 11:46:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[21-Jan-2026 11:46:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[21-Jan-2026 11:46:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[21-Jan-2026 11:46:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[21-Jan-2026 11:46:54 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[21-Jan-2026 11:46:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[21-Jan-2026 11:46:54 Europe/Berlin] isLoggedIn check result: true
[21-Jan-2026 11:46:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[21-Jan-2026 11:46:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1768992314
    [last_regeneration] => 1768992314
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1768992314
    [session_started_at] => 2026-01-21 11:45:15
    [cart] => Array
        (
        )

)

[21-Jan-2026 11:46:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[21-Jan-2026 11:46:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[21-Jan-2026 11:46:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[21-Jan-2026 11:46:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[21-Jan-2026 11:46:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[21-Jan-2026 11:46:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[21-Jan-2026 11:46:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[21-Jan-2026 11:46:54 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Jan-2026 08:36:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:36:52 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:36:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
)

[22-Jan-2026 08:36:52 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:36:52 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
)

[22-Jan-2026 08:36:52 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:36:52 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:36:52 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:36:52 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:36:52 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:36:52 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[22-Jan-2026 08:37:24 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:37:24 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:37:24 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:37:24 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:37:24 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:37:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:37:32 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:37:32 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:37:32 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:37:32 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:37:32 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[22-Jan-2026 08:37:32 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[22-Jan-2026 08:37:32 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[22-Jan-2026 08:37:32 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[22-Jan-2026 08:37:32 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[22-Jan-2026 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Jan-2026 08:37:32 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Jan-2026 08:37:32 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Jan-2026 08:41:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:41:39 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:41:39 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:41:39 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:41:39 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:41:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:41:42 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:41:42 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:41:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:41:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:41:44 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:41:44 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:41:44 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:41:44 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:41:44 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:42:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:42:16 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:42:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:42:16 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:42:16 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:42:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:42:20 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:42:20 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:42:20 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:42:20 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:42:20 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[22-Jan-2026 08:42:20 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[22-Jan-2026 08:42:20 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[22-Jan-2026 08:42:20 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[22-Jan-2026 08:42:20 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[22-Jan-2026 08:42:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[22-Jan-2026 08:42:20 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[22-Jan-2026 08:42:20 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[22-Jan-2026 08:46:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:46:07 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:46:07 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:46:07 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:46:07 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:46:27 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:46:27 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:46:27 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:46:27 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:46:27 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:46:30 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 08:46:30 Europe/Berlin] isLoggedIn check result: true
[22-Jan-2026 08:46:30 Europe/Berlin] Session data: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:46:30 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[22-Jan-2026 08:46:30 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1769067412
    [last_regeneration] => 1769067412
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1769067412
    [session_started_at] => 2026-01-22 08:36:52
    [cart] => Array
        (
        )

)

[22-Jan-2026 08:46:30 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[22-Jan-2026 14:15:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[22-Jan-2026 14:15:36 Europe/Berlin] isLoggedIn check result: false
[22-Jan-2026 14:15:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-22 14:15:36
)

[28-Jan-2026 10:15:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[28-Jan-2026 10:15:08 Europe/Berlin] isLoggedIn check result: false
[28-Jan-2026 10:15:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-28 10:15:08
)

[28-Jan-2026 14:18:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[28-Jan-2026 14:18:19 Europe/Berlin] isLoggedIn check result: false
[28-Jan-2026 14:18:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-28 14:18:19
)

[30-Jan-2026 05:12:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[30-Jan-2026 05:12:25 Europe/Berlin] isLoggedIn check result: false
[30-Jan-2026 05:12:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-30 05:12:25
)

[31-Jan-2026 01:48:28 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[31-Jan-2026 01:48:28 Europe/Berlin] isLoggedIn check result: false
[31-Jan-2026 01:48:28 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-31 01:48:28
)

[31-Jan-2026 02:42:39 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[31-Jan-2026 02:42:39 Europe/Berlin] isLoggedIn check result: false
[31-Jan-2026 02:42:39 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-01-31 02:42:39
)

[03-Feb-2026 02:06:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[03-Feb-2026 02:06:36 Europe/Berlin] isLoggedIn check result: false
[03-Feb-2026 02:06:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-03 02:06:36
)

[05-Feb-2026 08:16:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Feb-2026 08:16:38 Europe/Berlin] isLoggedIn check result: false
[05-Feb-2026 08:16:38 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-05 08:16:38
)

[05-Feb-2026 14:26:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Feb-2026 14:26:02 Europe/Berlin] isLoggedIn check result: true
[05-Feb-2026 14:26:02 Europe/Berlin] Session data: Array
(
    [created_at] => 1770297961
    [last_regeneration] => 1770297961
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297961
    [session_started_at] => 2026-02-05 14:26:02
)

[05-Feb-2026 14:26:02 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[05-Feb-2026 14:26:02 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1770297961
    [last_regeneration] => 1770297961
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297961
    [session_started_at] => 2026-02-05 14:26:02
)

[05-Feb-2026 14:26:03 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Feb-2026 14:26:03 Europe/Berlin] isLoggedIn check result: true
[05-Feb-2026 14:26:03 Europe/Berlin] Session data: Array
(
    [created_at] => 1770297961
    [last_regeneration] => 1770297961
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297961
    [session_started_at] => 2026-02-05 14:26:02
    [cart] => Array
        (
        )

)

[05-Feb-2026 14:26:03 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[05-Feb-2026 14:26:03 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1770297961
    [last_regeneration] => 1770297961
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297961
    [session_started_at] => 2026-02-05 14:26:02
    [cart] => Array
        (
        )

)

[05-Feb-2026 14:26:03 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[05-Feb-2026 14:26:17 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Feb-2026 14:26:17 Europe/Berlin] isLoggedIn check result: false
[05-Feb-2026 14:26:17 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-05 14:26:17
)

[05-Feb-2026 14:26:25 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Feb-2026 14:26:25 Europe/Berlin] isLoggedIn check result: true
[05-Feb-2026 14:26:25 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-05 14:26:17
    [created_at] => 1770297984
    [last_regeneration] => 1770297984
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297984
)

[05-Feb-2026 14:26:25 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[05-Feb-2026 14:26:25 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-05 14:26:17
    [created_at] => 1770297984
    [last_regeneration] => 1770297984
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297984
)

[05-Feb-2026 14:26:38 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Feb-2026 14:26:38 Europe/Berlin] isLoggedIn check result: true
[05-Feb-2026 14:26:38 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-05 14:26:17
    [created_at] => 1770297984
    [last_regeneration] => 1770297984
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297984
)

[05-Feb-2026 14:26:38 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[05-Feb-2026 14:26:38 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-05 14:26:17
    [created_at] => 1770297984
    [last_regeneration] => 1770297984
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297984
)

[05-Feb-2026 14:26:45 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Feb-2026 14:26:45 Europe/Berlin] isLoggedIn check result: true
[05-Feb-2026 14:26:45 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-05 14:26:17
    [created_at] => 1770297984
    [last_regeneration] => 1770297984
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297984
)

[05-Feb-2026 14:26:45 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[05-Feb-2026 14:26:45 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-05 14:26:17
    [created_at] => 1770297984
    [last_regeneration] => 1770297984
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297984
)

[05-Feb-2026 14:26:45 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[05-Feb-2026 14:26:45 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[05-Feb-2026 14:26:45 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[05-Feb-2026 14:26:45 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[05-Feb-2026 14:26:45 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[05-Feb-2026 14:26:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[05-Feb-2026 14:26:45 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[05-Feb-2026 14:26:45 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[05-Feb-2026 14:26:57 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Feb-2026 14:26:57 Europe/Berlin] isLoggedIn check result: true
[05-Feb-2026 14:26:57 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-05 14:26:17
    [created_at] => 1770297984
    [last_regeneration] => 1770297984
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297984
)

[05-Feb-2026 14:26:57 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[05-Feb-2026 14:26:57 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-05 14:26:17
    [created_at] => 1770297984
    [last_regeneration] => 1770297984
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297984
)

[05-Feb-2026 14:26:57 Europe/Berlin] ✅ COURSE ID: Received course_id: 22...
[05-Feb-2026 14:26:57 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 22
[05-Feb-2026 14:26:57 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 57
[05-Feb-2026 14:26:57 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 57
[05-Feb-2026 14:26:57 Europe/Berlin] 🎯 FINAL IDs: course_id=22, lesson_id=57
[05-Feb-2026 14:26:57 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[05-Feb-2026 14:26:57 Europe/Berlin] 🔍 DATABASE: Connection error: 
[05-Feb-2026 14:26:57 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[05-Feb-2026 14:26:57 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 22, lesson_id: 57
[05-Feb-2026 14:26:57 Europe/Berlin] ✅ QUERY: Successfully prepared
[05-Feb-2026 14:26:57 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[05-Feb-2026 14:26:57 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[05-Feb-2026 14:26:57 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[05-Feb-2026 14:26:57 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[05-Feb-2026 14:26:57 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[05-Feb-2026 14:26:57 Europe/Berlin] ❌ BACKEND: No video URL or path found
[05-Feb-2026 14:27:22 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[05-Feb-2026 14:27:22 Europe/Berlin] isLoggedIn check result: true
[05-Feb-2026 14:27:22 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-05 14:26:17
    [created_at] => 1770297984
    [last_regeneration] => 1770297984
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297984
)

[05-Feb-2026 14:27:22 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[05-Feb-2026 14:27:22 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-05 14:26:17
    [created_at] => 1770297984
    [last_regeneration] => 1770297984
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1770297984
)

[05-Feb-2026 14:27:22 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[06-Feb-2026 23:15:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[06-Feb-2026 23:15:12 Europe/Berlin] isLoggedIn check result: false
[06-Feb-2026 23:15:12 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-06 23:14:48
    [created_at] => 1770416093
    [last_regeneration] => 1770416093
)

[06-Feb-2026 23:17:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[06-Feb-2026 23:17:10 Europe/Berlin] isLoggedIn check result: false
[06-Feb-2026 23:17:10 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-06 23:16:47
    [created_at] => 1770416210
    [last_regeneration] => 1770416210
)

[07-Feb-2026 01:20:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[07-Feb-2026 01:20:36 Europe/Berlin] isLoggedIn check result: false
[07-Feb-2026 01:20:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-07 01:20:36
)

[09-Feb-2026 00:44:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[09-Feb-2026 00:44:42 Europe/Berlin] isLoggedIn check result: false
[09-Feb-2026 00:44:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-09 00:44:42
)

[11-Feb-2026 09:21:59 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[11-Feb-2026 09:21:59 Europe/Berlin] isLoggedIn check result: false
[11-Feb-2026 09:21:59 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-11 09:21:59
)

[11-Feb-2026 14:03:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[11-Feb-2026 14:03:10 Europe/Berlin] isLoggedIn check result: false
[11-Feb-2026 14:03:10 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-11 14:03:10
)

[11-Feb-2026 21:02:12 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[11-Feb-2026 21:02:12 Europe/Berlin] isLoggedIn check result: false
[11-Feb-2026 21:02:12 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-11 21:02:12
)

[14-Feb-2026 15:19:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[14-Feb-2026 15:19:36 Europe/Berlin] isLoggedIn check result: false
[14-Feb-2026 15:19:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-14 15:19:36
)

[14-Feb-2026 15:27:08 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[14-Feb-2026 15:27:08 Europe/Berlin] isLoggedIn check result: true
[14-Feb-2026 15:27:08 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
)

[14-Feb-2026 15:27:08 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[14-Feb-2026 15:27:08 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
)

[14-Feb-2026 15:27:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[14-Feb-2026 15:27:09 Europe/Berlin] isLoggedIn check result: true
[14-Feb-2026 15:27:09 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
    [cart] => Array
        (
        )

)

[14-Feb-2026 15:27:09 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[14-Feb-2026 15:27:09 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
    [cart] => Array
        (
        )

)

[14-Feb-2026 15:27:09 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[14-Feb-2026 15:29:36 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[14-Feb-2026 15:29:36 Europe/Berlin] isLoggedIn check result: true
[14-Feb-2026 15:29:36 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
    [cart] => Array
        (
        )

)

[14-Feb-2026 15:29:36 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[14-Feb-2026 15:29:36 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
    [cart] => Array
        (
        )

)

[14-Feb-2026 15:29:42 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[14-Feb-2026 15:29:42 Europe/Berlin] isLoggedIn check result: true
[14-Feb-2026 15:29:42 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
    [cart] => Array
        (
        )

)

[14-Feb-2026 15:29:42 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[14-Feb-2026 15:29:42 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
    [cart] => Array
        (
        )

)

[14-Feb-2026 15:29:42 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[14-Feb-2026 15:29:42 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[14-Feb-2026 15:29:42 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[14-Feb-2026 15:29:42 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[14-Feb-2026 15:29:42 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[14-Feb-2026 15:29:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[14-Feb-2026 15:29:43 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[14-Feb-2026 15:29:43 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[14-Feb-2026 15:29:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[14-Feb-2026 15:29:54 Europe/Berlin] isLoggedIn check result: true
[14-Feb-2026 15:29:54 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
    [cart] => Array
        (
        )

)

[14-Feb-2026 15:29:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[14-Feb-2026 15:29:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
    [cart] => Array
        (
        )

)

[14-Feb-2026 15:29:54 Europe/Berlin] ✅ COURSE ID: Received course_id: 22...
[14-Feb-2026 15:29:54 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 22
[14-Feb-2026 15:29:54 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 57
[14-Feb-2026 15:29:54 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 57
[14-Feb-2026 15:29:54 Europe/Berlin] 🎯 FINAL IDs: course_id=22, lesson_id=57
[14-Feb-2026 15:29:54 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[14-Feb-2026 15:29:54 Europe/Berlin] 🔍 DATABASE: Connection error: 
[14-Feb-2026 15:29:54 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[14-Feb-2026 15:29:54 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 22, lesson_id: 57
[14-Feb-2026 15:29:54 Europe/Berlin] ✅ QUERY: Successfully prepared
[14-Feb-2026 15:29:54 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[14-Feb-2026 15:29:54 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[14-Feb-2026 15:29:54 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[14-Feb-2026 15:29:54 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[14-Feb-2026 15:29:54 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[14-Feb-2026 15:29:54 Europe/Berlin] ❌ BACKEND: No video URL or path found
[14-Feb-2026 15:30:51 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[14-Feb-2026 15:30:51 Europe/Berlin] isLoggedIn check result: true
[14-Feb-2026 15:30:51 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
    [cart] => Array
        (
        )

)

[14-Feb-2026 15:30:51 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[14-Feb-2026 15:30:51 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-14 15:26:51
    [created_at] => 1771079218
    [last_regeneration] => 1771079218
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771079218
    [cart] => Array
        (
        )

)

[14-Feb-2026 15:30:51 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[15-Feb-2026 00:05:02 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[15-Feb-2026 00:05:02 Europe/Berlin] isLoggedIn check result: false
[15-Feb-2026 00:05:02 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-15 00:05:02
)

[15-Feb-2026 12:13:07 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[15-Feb-2026 12:13:07 Europe/Berlin] isLoggedIn check result: false
[15-Feb-2026 12:13:07 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-15 11:11:55
    [created_at] => 1771153936
    [last_regeneration] => 1771153936
    [stored_redirect] => ../student/library.php
    [redirect_to_cart] => 
)

[15-Feb-2026 20:02:56 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[15-Feb-2026 20:02:56 Europe/Berlin] isLoggedIn check result: false
[15-Feb-2026 20:02:56 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-15 20:02:56
)

[16-Feb-2026 11:41:18 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[16-Feb-2026 11:41:18 Europe/Berlin] isLoggedIn check result: false
[16-Feb-2026 11:41:18 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-16 11:41:18
)

[16-Feb-2026 11:41:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[16-Feb-2026 11:41:21 Europe/Berlin] isLoggedIn check result: false
[16-Feb-2026 11:41:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-16 11:41:21
)

[17-Feb-2026 13:31:11 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Feb-2026 13:31:11 Europe/Berlin] isLoggedIn check result: false
[17-Feb-2026 13:31:11 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-17 13:31:11
)

[17-Feb-2026 14:30:09 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[17-Feb-2026 14:30:09 Europe/Berlin] isLoggedIn check result: false
[17-Feb-2026 14:30:09 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-17 14:30:09
)

[18-Feb-2026 06:27:19 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Feb-2026 06:27:19 Europe/Berlin] isLoggedIn check result: false
[18-Feb-2026 06:27:19 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-18 06:27:19
)

[18-Feb-2026 06:27:20 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Feb-2026 06:27:20 Europe/Berlin] isLoggedIn check result: false
[18-Feb-2026 06:27:20 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-18 06:27:20
)

[18-Feb-2026 06:27:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Feb-2026 06:27:23 Europe/Berlin] isLoggedIn check result: false
[18-Feb-2026 06:27:23 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-18 06:27:23
)

[18-Feb-2026 06:27:23 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[18-Feb-2026 06:27:23 Europe/Berlin] isLoggedIn check result: false
[18-Feb-2026 06:27:23 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-18 06:27:23
)

[19-Feb-2026 10:49:10 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[19-Feb-2026 10:49:10 Europe/Berlin] isLoggedIn check result: false
[19-Feb-2026 10:49:10 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-19 09:49:08
)

[20-Feb-2026 09:41:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:41:50 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:41:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
)

[20-Feb-2026 09:41:50 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:41:50 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
)

[20-Feb-2026 09:41:50 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:41:50 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:41:50 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:41:50 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:41:50 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:41:50 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[20-Feb-2026 09:42:06 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:42:06 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:42:06 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:42:06 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:42:06 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:42:06 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[20-Feb-2026 09:42:06 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[20-Feb-2026 09:42:06 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[20-Feb-2026 09:42:06 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[20-Feb-2026 09:42:06 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[20-Feb-2026 09:42:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[20-Feb-2026 09:42:06 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[20-Feb-2026 09:42:06 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[20-Feb-2026 09:42:16 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:42:16 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:42:16 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:42:16 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:42:16 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:42:16 Europe/Berlin] ✅ COURSE ID: Received course_id: 22...
[20-Feb-2026 09:42:16 Europe/Berlin] ✅ DECRYPT: course_id is already numeric: 22
[20-Feb-2026 09:42:16 Europe/Berlin] ✅ LESSON ID: Received lesson_id: 57
[20-Feb-2026 09:42:16 Europe/Berlin] ✅ DECRYPT: lesson_id is already numeric: 57
[20-Feb-2026 09:42:16 Europe/Berlin] 🎯 FINAL IDs: course_id=22, lesson_id=57
[20-Feb-2026 09:42:16 Europe/Berlin] 🔍 DATABASE: Connection status: Connected
[20-Feb-2026 09:42:16 Europe/Berlin] 🔍 DATABASE: Connection error: 
[20-Feb-2026 09:42:16 Europe/Berlin] 🔍 QUERY: Preparing SQL:  SELECT v.video_id, v.video_id as lesson_id, v.title, v.description, v.video_url, v.external_url, v.platform, v.thumbnail, v.duration, v.video_type, v.embed_code, v.video_id_external, CASE WHEN v.video_url LIKE '%youtube.com%' OR v.video_url LIKE '%youtu.be%' OR v.video_url LIKE '%vimeo.com%' OR v.external_url LIKE 'http%' OR v.video_type = 'url' THEN 1 ELSE 0 END as is_external FROM videos v WHERE v.course_id = ? AND v.video_id = ? AND v.is_published = 1 ORDER BY v.video_order ASC, v.created_at ASC LIMIT 1 
[20-Feb-2026 09:42:16 Europe/Berlin] 🔍 QUERY: Parameters - course_id: 22, lesson_id: 57
[20-Feb-2026 09:42:16 Europe/Berlin] ✅ QUERY: Successfully prepared
[20-Feb-2026 09:42:16 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_url = NULL
[20-Feb-2026 09:42:16 Europe/Berlin] 🔍 BACKEND DEBUG: Raw video_path = NULL
[20-Feb-2026 09:42:16 Europe/Berlin] 🔍 BACKEND DEBUG: Database video_type = url
[20-Feb-2026 09:42:16 Europe/Berlin] 🎬 BACKEND ERROR: No video source found
[20-Feb-2026 09:42:16 Europe/Berlin] 🔍 BACKEND DEBUG: Final video_type = url, video_platform = none
[20-Feb-2026 09:42:16 Europe/Berlin] ❌ BACKEND: No video URL or path found
[20-Feb-2026 09:42:48 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:42:48 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:42:48 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:42:48 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:42:48 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:43:05 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:43:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:05 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:43:05 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:43:05 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:43:05 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:05 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:43:05 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:13 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:43:13 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:43:13 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:13 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:43:13 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:34 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:43:34 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:43:34 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:34 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:43:34 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:34 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[20-Feb-2026 09:43:34 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[20-Feb-2026 09:43:34 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[20-Feb-2026 09:43:34 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[20-Feb-2026 09:43:34 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[20-Feb-2026 09:43:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[20-Feb-2026 09:43:34 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[20-Feb-2026 09:43:34 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[20-Feb-2026 09:43:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:43:47 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:43:47 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:47 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:43:47 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:47 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[20-Feb-2026 09:43:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:43:54 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:43:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:43:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[20-Feb-2026 09:43:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[20-Feb-2026 09:43:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[20-Feb-2026 09:43:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[20-Feb-2026 09:43:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[20-Feb-2026 09:43:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[20-Feb-2026 09:43:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[20-Feb-2026 09:43:54 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[20-Feb-2026 09:43:54 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[20-Feb-2026 09:43:54 Europe/Berlin] isLoggedIn check result: true
[20-Feb-2026 09:43:54 Europe/Berlin] Session data: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:54 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[20-Feb-2026 09:43:54 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1771576897
    [last_regeneration] => 1771576897
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1771576897
    [session_started_at] => 2026-02-20 09:41:50
    [cart] => Array
        (
        )

)

[20-Feb-2026 09:43:54 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[20-Feb-2026 09:43:54 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[20-Feb-2026 09:43:54 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[20-Feb-2026 09:43:54 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[20-Feb-2026 09:43:54 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[20-Feb-2026 09:43:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[20-Feb-2026 09:43:54 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[20-Feb-2026 09:43:54 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
[23-Feb-2026 18:23:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[23-Feb-2026 18:23:32 Europe/Berlin] isLoggedIn check result: false
[23-Feb-2026 18:23:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-23 18:23:32
)

[25-Feb-2026 10:58:55 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[25-Feb-2026 10:58:55 Europe/Berlin] isLoggedIn check result: false
[25-Feb-2026 10:58:55 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-25 10:58:55
)

[25-Feb-2026 16:02:32 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[25-Feb-2026 16:02:32 Europe/Berlin] isLoggedIn check result: false
[25-Feb-2026 16:02:32 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-25 16:02:32
)

[27-Feb-2026 18:00:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[27-Feb-2026 18:00:04 Europe/Berlin] isLoggedIn check result: true
[27-Feb-2026 18:00:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1772211593
    [last_regeneration] => 1772211593
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1772211593
    [session_started_at] => 2026-02-27 18:00:04
)

[27-Feb-2026 18:00:04 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[27-Feb-2026 18:00:04 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1772211593
    [last_regeneration] => 1772211593
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1772211593
    [session_started_at] => 2026-02-27 18:00:04
)

[27-Feb-2026 18:00:04 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[27-Feb-2026 18:00:04 Europe/Berlin] isLoggedIn check result: true
[27-Feb-2026 18:00:04 Europe/Berlin] Session data: Array
(
    [created_at] => 1772211593
    [last_regeneration] => 1772211593
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1772211593
    [session_started_at] => 2026-02-27 18:00:04
    [cart] => Array
        (
        )

)

[27-Feb-2026 18:00:04 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[27-Feb-2026 18:00:04 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [created_at] => 1772211593
    [last_regeneration] => 1772211593
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1772211593
    [session_started_at] => 2026-02-27 18:00:04
    [cart] => Array
        (
        )

)

[27-Feb-2026 18:00:04 Europe/Berlin] Dashboard hours debug: User 57 has total hours: 130
[27-Feb-2026 18:02:05 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[27-Feb-2026 18:02:05 Europe/Berlin] isLoggedIn check result: false
[27-Feb-2026 18:02:05 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-27 18:02:05
)

[27-Feb-2026 18:02:21 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[27-Feb-2026 18:02:21 Europe/Berlin] isLoggedIn check result: true
[27-Feb-2026 18:02:21 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-27 18:02:05
    [created_at] => 1772211731
    [last_regeneration] => 1772211731
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1772211731
)

[27-Feb-2026 18:02:21 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[27-Feb-2026 18:02:21 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-27 18:02:05
    [created_at] => 1772211731
    [last_regeneration] => 1772211731
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1772211731
)

[27-Feb-2026 18:02:47 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[27-Feb-2026 18:02:47 Europe/Berlin] isLoggedIn check result: true
[27-Feb-2026 18:02:47 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-27 18:02:05
    [created_at] => 1772211731
    [last_regeneration] => 1772211731
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1772211731
)

[27-Feb-2026 18:02:47 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[27-Feb-2026 18:02:47 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-27 18:02:05
    [created_at] => 1772211731
    [last_regeneration] => 1772211731
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1772211731
)

[27-Feb-2026 18:25:15 Europe/Berlin] DEBUG - Dashboard session save path set to: /tmp
[27-Feb-2026 18:25:15 Europe/Berlin] isLoggedIn check result: true
[27-Feb-2026 18:25:15 Europe/Berlin] Session data: Array
(
    [session_started_at] => 2026-02-27 18:02:05
    [created_at] => 1772211731
    [last_regeneration] => 1772211731
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1772211731
)

[27-Feb-2026 18:25:15 Europe/Berlin] 🔐 ROLE CHECK - Required: student, User: student
[27-Feb-2026 18:25:15 Europe/Berlin] 🔐 SESSION DATA: Array
(
    [session_started_at] => 2026-02-27 18:02:05
    [created_at] => 1772211731
    [last_regeneration] => 1772211731
    [stored_redirect] => /student/course-catalog.php
    [redirect_to_cart] => 
    [user_id] => 57
    [username] => jokinishgs
    [email] => futuristicpath357@gmail.com
    [first_name] => Alain
    [last_name] => Kitumaini
    [user_role] => student
    [logged_in] => 1
    [is_logged_in] => 1
    [login_time] => 1772211731
)

[27-Feb-2026 18:25:15 Europe/Berlin] ACCREDITATION DEBUG - user_id: 57, course_id: 22, is_enrolled: YES
[27-Feb-2026 18:25:15 Europe/Berlin] DIRECT QUERY TEST - Request ID 6: NOT FOUND
[27-Feb-2026 18:25:15 Europe/Berlin] COURSE DETAIL DEBUG: current_lesson_id = 57
[27-Feb-2026 18:25:15 Europe/Berlin] COURSE DETAIL DEBUG: Available lessons: [57]
[27-Feb-2026 18:25:15 Europe/Berlin] COURSE PROGRESS DEBUG: Total: 1, Completed: 0, Percentage: 0%
[27-Feb-2026 18:25:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1338
[27-Feb-2026 18:25:15 Europe/Berlin] Error 8: Undefined variable: hasVideoNotes in /home/twpurnyc/public_html/student/course-detail.php on line 1597
[27-Feb-2026 18:25:15 Europe/Berlin] INSTRUCTOR PROFILE DEBUG: Found profile_picture = empty
